/*RESET THEME STYLES*/
button[type="submit"] {
    all: unset !important; /* 💣 nukes ALL inherited styles */
    display: inline-block !important;
    padding: 15px 26px !important;
    background-color: #141415 !important;
    border: 1.5px solid #4A4A4A !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
}

button[type="submit"]:hover {
    background-color: #B1B1B1 !important;
    color: #141415 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

main {
    background-color: #F4F4F4;
}

.cart-title a {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 23px;
    text-decoration: none;
    color: #000000;
}

.cart-title svg {
    margin-top: -5px;
}

.cart-title a:hover {
    color: #919191;
}

/* Product Images */

/* Main Image Wrapper */
.main-image-wrapper {
    width: 100%;
    max-width: 460px;
    height: 100%;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    max-height: 570px;
    object-fit: cover;
    height: 100%;
}

/* Discount Badge */
.discount-image-container {
    position: absolute;
    left: 12px;
    top: 12px;
}

.discount-image {
    width: 32px;
    height: 32px;
}

/* Thumbnail Sidebar */
.thumbnail-sidebar {
    width: 100%;
    max-width: 150px;
    max-height: 580px;
    margin: 0 auto;
}

/* Thumbnail Container & Inner */
.thumbnail-container {
    overflow: hidden;
    max-width: 100%;
    height: auto;
}

.thumbnail-inner {
    transition: transform 0.3s;
}

/* Thumbnail Images */
.thumbnail-img {
    object-fit: cover;
    cursor: pointer;
    padding: 0;
    width: 120px;
    height: 120px;
}

/* Arrows */
.secondary-images-arrows {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: white;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    padding: 0;
}

.secondary-images-arrows:hover {
    background-color: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .main-image-wrapper {
        max-width: 100%;
    }

    .thumbnail-sidebar {
        max-width: 100%;
        margin: 20px 0;
    }

    .thumbnail-container {
        width: 500px;
        max-width: 90%;
        height: auto;
    }

    .thumbnail-img {
        width: 80px;
        height: 80px;
    }
}

/*Product Information*/

.product-category {
    font-family: 'Shafarik';
    font-style: normal;
    font-weight: 400;
    font-size: 23px;
    line-height: 26px;
    /* identical to box height */
    text-transform: uppercase;

    color: #141415;
}

.product-name {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 35px;

    color: #141415;
    white-space: normal;
    word-break: break-word;
}

.product-variation {
    margin: 0;
}

.variation-option {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px 24px;
    text-align: center;
    box-shadow: none;
    border: none;
    font-family: 'Nunito Sans', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;
    color: #141415;
    cursor: pointer;

    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.variation-option:hover {
    background-color: #E7E7E7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.variation-option.active {
    background-color: #393939 !important;
    color: #ffffff !important;
}

.product-disabled-attributes {
    background-color: #e0e0e0 !important;
    color: #666666 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .4;
}

.price-container {
    margin: 0 0 2.5rem 0;
}

.price {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 21px;
    line-height: 29px;

    color: #000000;

}

.old-price {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    line-height: 29px;

    color: #919191;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 129px;
    height: 42px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2px;
}

.qty-btn {
    width: 35px;
    height: 34px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: #e0e0e0;
}

.qty-display {
    /*width: 55px;*/
    text-align: center;
    border: none;
    background-color: transparent;
    pointer-events: none;
    padding: 0;
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    display: flex;
    align-items: center;
    color: #000000;
}

.custom-btn, button.submit button[type='submit'] {
    display: inline-block !important;
    padding: 15px 26px !important;
    background-color: #141415 !important;
    border: 1.5px solid #4A4A4A !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    font-family: 'Nunito Sans' !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    color: #FFFFFF !important;
}

.custom-btn:hover, button.submit button[type='submit']:hover {
    background-color: #B1B1B1 !important;
    color: #141415 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

.favourite-icon,
.favourite-icon-full {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    z-index: 2;
    right: 12px;
}

.favourite-icon:hover,
.favourite-icon-full:hover {
    transform: scale(1.2);
}

.responsive-hr {
    border-top: 2px solid #141415;
    width: 100%;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .responsive-hr {
        margin-left: auto;
        margin-right: auto;
    }
}

/*Product Fast Order*/

form {
    max-width: 450px;
    padding-right: 40px;
}

form h5 {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 23px;

    color: #000000;

}

form input {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 23px;

    color: #919191;

}

form input:focus {
    border: 1px solid #000000 !important;
}

form label {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    color: #696969;
}

form label > a {
    color: #696969;
    text-decoration: none;
}

form label > a:hover{
    text-decoration: underline;
}

input[type="checkbox"] {
    box-shadow: rgba(255, 255, 255, 0.098) 0px 1.94538px 5.83614px 0px !important;
    outline: none;
    border: 1px solid #000000;
}

input[type="checkbox"]:focus {
    box-shadow: rgba(255, 255, 255, 0.098) 0px 1.94538px 5.83614px 0px;
    outline: none;
    border: 1px solid #000000;
}

input[type="checkbox"]:checked {
    background-color: rgb(96, 96, 97);
    color: rgb(141, 141, 141);
    box-shadow: rgba(255, 255, 255, 0.098) 0px 1.94538px 5.83614px 0px;
}

/*Product Accordion Description*/
.product-accordion {
    margin-top: 150px;
    font-family: 'Nunito Sans', sans-serif;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: normal;
    align-items: center;
    user-select: none;
    padding: 0;
    gap: 10px;
}

.accordion-title {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;
    color: #000000;
}

.accordion-arrow {
    margin-top: -3px;
}

.accordion-arrow svg {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.accordion-header.active .accordion-arrow svg {
    transform: rotate(90deg);
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #787878;
}

.accordion-content ul {
    margin-top: 10px;
    padding-left: 1rem;
}

/*toastify*/
.toastify {
    word-break: break-word;
    max-width: 90vw;
    box-sizing: border-box;
}

.toast-close {
    color: #141415 !important;
    opacity: 1 !important;
}

/*overlay secondary images on thumbnail*/
.hover-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.hover-overlay-image.show {
    opacity: 1;
}

/*related products*/
.product-section {
    background-color: #F4F4F4;
}

.product-section a {
    text-decoration: none;
}

.product-section .section-title {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 800;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;

    color: #141415;
}

.product-container {
    background: linear-gradient(180deg, #F9F9F9 0%, #F0F2F1 100%);
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    /*overflow: hidden;*/
}

.product-container:hover {
    box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.1);
}

.product-container:hover .card-img-top {
    transform: scale(1.05);
}

.product-container .product-name {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    height: 66px;
}

.product-container .product-price {
    font-family: 'Nunito Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    text-transform: lowercase;
    color: #141415;

    display: flex;
    align-items: center;
}

.product-container .old-price {
    font-size: 14px;
    color: #808080;
    text-decoration: line-through;
    line-height: 1;
    display: inline-block;
}

.product-container .new-price {
    font-size: 15px;
    font-weight: 700;
    color: #141415;
}

.product-section .card {
    padding: 0;
}

.product-section .card-body {
    padding: 16px;
}

.custom-img-height {
    min-height: 360px;
}

.card-img-top {
    height: 100%;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.product-section .favourite-icon,
.product-section .favourite-icon-full {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    z-index: 2;
    right: 12px;
}

.product-section .favourite-icon:hover,
.product-section .favourite-icon-full:hover {
    transform: scale(1.2);
}

@media only screen and (max-width: 550px) {
    .fade-product {
        padding: 0 10px;
        margin: 35px 0 !important;
    }

    .product-container {
        min-height: unset;
    }

    .custom-img-height {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        min-height: unset;
    }

    .product-container .product-price {
        flex-direction: column-reverse;
        gap: 5px;
    }
}

/*fast order hover*/
.tooltip-inner {
    background-color: #D9D9D9 !important; /* light gray background */
    color: #141415 !important;            /* dark text */
    font-family: 'Nunito Sans', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 15px !important;           /* fixed here */
    line-height: 20px !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #A7A7A7 !important;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.13) !important;
}

/* Бързата поръчка е приета. */
.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #000000 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #000000 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #000000 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #000000 !important;
}

/*custom toastify*/
.custom-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #ffffff;
    color: #141415;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    gap: .5em;
    align-items: center;
    background-image: linear-gradient(to right, #141415 6px, transparent 6px);
    background-repeat: no-repeat;
    background-size: 10px 100%;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.custom-toast.hide {
    opacity: 0;
}

.buy-button-container {
    display: inline-block
}

.buy-button {
    font-family: 'Nunito Sans', sans-serif;
    display: inline-block;
    border-radius: 8px;
    background: #F5F5F5;
    position: relative;
    top: 50%;
    border: 1px solid #E0E0E0;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s ease;

}

.product-container:hover .buy-button {
    background: linear-gradient(to right, #F5F5F5, #E0E0E0);
}

.custom-img-height {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-container .product-image {
    max-height: 100%;
    width: auto;
    object-fit: cover;
}

.product-container .product-name {
    height: 44px;
    line-height: 22px;
    overflow: hidden;
    display: -webkit-box;
}

.product-container .product-price {
    min-height: 22px;
}

.buy-button-container {
    margin-top: auto;
}

@media (max-width: 576px) {
    .custom-img-height {
        height: 200px;
    }

    .product-container .product-name {
        height: 44px;
        font-size: 14px;
    }

    .product-container .product-price {
        font-size: 14px;
    }

    .buy-button {
        font-size: 13px;
        padding: 0.5rem 0.75rem;
    }

    .buy-button-container svg {
        display: none;
    }
}

 .blurred {
     filter: blur(0.8px);
     opacity: 0.85;
     transition: all 0.3s ease-in-out;
 }

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    border-radius: 10px;
    z-index: 3;
    transition: all 0.3s ease-in-out;
}

.overlay-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #141415;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
}

[data-tooltip]{
    position:relative;
    cursor:pointer;
}

[data-tooltip]::after{
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom center;
    background: #000;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: .75rem;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 1080;
    opacity: 0;
    transition: transform .15s ease-out, opacity .15s ease-out;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after{
    transform:translateX(-50%) scale(1);
    opacity:.9;
}

.responsive-hr {
    margin: 40px 0px 20px;
}

.btn-disabled, button[type="submit"].btn-disabled {
    cursor: not-allowed !important;
}
#gift-box-builder h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

#gift-box-builder .form-label {
    font-size: 14px;
    margin-bottom: 6px;
}

#gift-box-builder .form-select {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

#submitGiftBox:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

#submitGiftBox {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    transition: 0.3s ease;
}

#submitGiftBox:hover:enabled {
    background-color: #111;
    transform: scale(1.03);
}

