body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: rgb(var(--foreground));
}

:root {
    --border-radius: 25%;
    --border-radius-px: 5px;
    --title-font: 'Italiana', serif;
    --relative: relative;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px;
    width: 100%;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
    font-family: var(--title-font);
    margin-top: 0;
}

button,
input,
a {
    font-family: inherit;
}

.row {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 10px;
    background: none;
    background-color: var(--neutral-color);
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    font-weight: 400;
    padding: 7px 20px;
    cursor: pointer;
    border-radius: var(--border-radius-px);
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.btn-danger {
    background-color: #ff5555;
    color: white;
}

.btn-clean {
    background: none;
    border: none;
    outline: none;
    display: inline;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.btn .material-symbols-outlined {
    font-size: 18px;
}

.button-bar {
    display: inline-flex;
    gap: 10px;
}

.btn:hover {
    filter: brightness(0.9) contrast(1.1);
}

.btn:active {
    filter: brightness(0.8) contrast(1.2);
}

.btn:disabled {
    filter: brightness(0.8) contrast(0.5) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-foreground);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
    background: none;
    border: none;
    outline: none;
    display: inline;
    height: auto;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: stretch;
    justify-content: stretch;
}

.input-row>* {
    flex: 1;
    min-width: 0;
    flex-basis: 0;
}

.input {
    padding: 8px;
    border: solid 1px var(--neutral-color);
    background-color: var(--card-color);
    color: rgb(var(--foreground));
    outline: none;
}

.checkbox {
    display: flex;
    align-items: center;
    font-family: inherit;
    justify-content: start;
    font-size: 13px;
    gap: 10px;
}

.checkbox input[type='checkbox'] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--neutral-color);
    position: relative;
    margin: 0;
}

.checkbox input[type='checkbox']:checked::before {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: black;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border: solid 1px var(--neutral-color);
    font-size: 13px;
}

.form-control {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message-error {
    border-color: color-mix(in srgb, firebrick 20%, var(--background));
    background: color-mix(in srgb, firebrick 5%, var(--background));
}

.message-success {
    border-color: color-mix(in srgb, green 20%, var(--background));
    background: color-mix(in srgb, green 5%, var(--background));
}

.options::-webkit-scrollbar {
    width: 0;
    height: 0;
    opacity: 0;
}

.options {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    max-width: 100%;
    overflow-y: auto;
    align-items: start;
    font-size: 11px;
}

.options .option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.options button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--border-radius);
    background: none;
    cursor: pointer;
    outline: none;
    border: solid 2px var(--neutral-color);
    background-position: center;
    background-size: cover;
    font-size: inherit;
}


.options button.active,
.options .active button {
    border: solid 2px var(--primary-color);
}

.options span {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hidden {
    display: none !important;
}

.tabs {
    border-bottom: solid 1px var(--neutral-color);
    padding: 10px 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
}

.tab {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
    border-right: solid 1px var(--neutral-color);
    padding: 0 20px;
    min-width: 150px;
}

.tab.active {
    color: var(--primary-color);
    opacity: 1;
}

.tab:last-child {
    border-right: none;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: var(--neutral-color-light, #f1f1f1);
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--neutral-color, #ddd);
    border-radius: 2px;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-color-dark, #bbb);
}

.icon-right .badge {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.5rem;
    background: red;
    color: white;
    border-radius: var(--border-radius);
    width: 0.7rem;
    height: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.relative {
    position: var(--relative);
}

.icon-right a {
    color: inherit;
    display: inline-block !important;
}

/* common filter css */

.swatch-container {
    display: flex;
    position: relative;
}

.scroller {
    top: 0;
    bottom: 0;
    width: 20px;
    font-family: 'Material Symbols Outlined';
    position: absolute;
    display: inline-flex;
    align-items: center;
    display: none;
}

.scrollLeft .scroller-left {
    left: -20px;
    display: inline-flex;
}

.scrollRight .scroller-right {
    right: -20px;
    display: inline-flex;
}

.slider.filter-slider {
    width: calc(100%);
    padding: 3px 0;
    border-radius: 10px;
    position: relative;
    margin: 9.5px 0;
}

.filter-slider .thumb {
    user-select: none;
    background-color: var(--primary-color);
    padding: 10px;
    display: inline-block;
    border-radius: 100%;
    position: absolute;
    top: -6px;
    cursor: pointer;
}

.filter-slider .fill {
    position: absolute;
    background-color: var(--primary-color);
    padding: 3px 0;
    border-radius: 10px;
    top: 2px;
}

.filter-slider .background {
    width: 100%;
    background-color: var(--neutral-color);
    position: relative;
    padding: 3px 0;
    border-radius: 10px;
    top: 0px;
}

.filter-slider,
.filter-labels,
.filter-slider .ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.filter-slider .ticks {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.filter-slider .ticks .tick {
    border-right: solid 1px white;
    flex: 1;
    height: 100%;
}

.filter-labels .label {
    min-width: 0;
    flex-basis: 0;
    flex: 1;
    font-size: 12px;
    text-align: center;
}

.inputs.filter-input {
    display: flex;
    width: 100%;
}

.filter-input .inputs input {
    flex: 1;
    min-width: 0;
    width: 20px;
    flex-basis: 0;
}

.filter-input input:nth-child(1) {
    border-right: none;
}

.filter-input input:nth-child(2) {
    text-align: right;
}

.textarea {
    font-family: inherit;
    resize: none;
    outline: none;
    width: 100%;
    height: 80px;
    margin: 10px 0px;
    padding: 10px;
    border: 1px solid var(--neutral-color);
    border-radius: var(--border-radius-px);
}

.checkbox-group.filter-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.filter-checkbox-group .checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-checkbox-group span {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-checkbox-group input[type='checkbox'] {
    border: 1px solid #e3e3e3;
    margin-right: 0.5em;
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    content: '';
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    margin: 0;
    margin-right: 6px;
    margin-bottom: 5px;
    cursor: pointer;
    vertical-align: middle;
    top: 1px;
    line-height: 1;
    outline: 0;
}

.filter-checkbox-group input[type='checkbox']:checked {
    background-color: var(--primary-color);
}

.filter-checkbox-group input[type='checkbox']:before {
    content: '';
    display: block;
    position: absolute;
    width: 3px;
    height: 8px;
    border: solid var(--neutral-color);
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.filter-checkbox-group input[type='checkbox']:checked:before {
    opacity: 1;
}

/* AddToBag css */
.cart.add-to-bag-btn {
    flex: 1;
}

.cart.add-to-bag-btn.glass button {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-family: inherit;
    font-size: 1rem;
    border: solid 1px var(--neutral-color);
    outline: none;
    color: black;
    border-radius: 20px;
    cursor: pointer;
    text-wrap: nowrap;
}

.cart.add-to-bag-btn button {
    width: 100%;
}

/* CartItem css */
.product.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: solid 1px var(--neutral-color);
}

.product.cart-item img {
    max-width: 150px;
}

.product.cart-item .left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product.cart-item .right {
    flex: 1;
    display: flex;
}

.product.cart-item>.right {
    gap: 20px;
}

.product.cart-item .column {
    flex-direction: column;
    align-items: flex-start;
}

.cart-item .price {
    font-weight: 500;
}

.cart-item .quantity {
    display: inline-flex;
    border: solid 1px var(--neutral-color);
    border-radius: var(--border-radius-px);
}

.cart-item .quantity input {
    background: none;
    border: none;
    height: 100%;
    padding: 11px 0;
    width: 50px;
    text-align: center;
    box-sizing: border-box;
}

.cart-item .quantity input::-webkit-outer-spin-button,
.cart-item .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item .quantity :disabled {
    opacity: 0.2;
}

.cart-item .description {
    margin: 10px 0;
    font-size: 14px;
    opacity: 0.7;
}

/* ProductGrid css */
.products.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.products.product-grid .loading {
    aspect-ratio: 1;
    min-width: 0;
    align-content: center;
}

/* Orders css */
.my-orders-details .badge {
    padding: 5px 10px;
    border-radius: var(--border-radius-px);
    background-color: var(--neutral-color);
    font-size: 12px;
}

/* Language switcher and my account drp css */
.relative.account-btn:has(.dropdown):hover .dropdown.visible,
.relative.account-btn .dropdown.visible:hover,
.language-switcher .relative:has(.dropdown):hover .dropdown.visible,
.language-switcher .relative .dropdown.visible:hover {
    display: block;
}

.language-switcher .dropdown .btn-clean,
.dropdown.my-account .btn-clean {
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 14px;
}

.language-switcher .dropdown .btn-clean:hover,
.dropdown.my-account .btn-clean:hover {
    background: var(--neutral-color);
}

/* product list css */
.product-list img {
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border: solid 1px var(--neutral-color);
    width: 100%;
}

.product-list .img1.product-image {
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border: solid 1px var(--neutral-color);
    width: 100%;
}

.images:hover .img1.product-image {
    display: none;
}

/* cart and checkout css */
.checkout.cart-order-summary,
.checkout.checkout-inner {
    border: solid 1px var(--neutral-color);
    padding: 30px 20px;
    height: fit-content;
    flex: 1;
    box-sizing: border-box;
    max-width: 300px;
}

/* language switcher */
.links .language-switcher {
    display: none !important;
}

.mt-3 { 
    margin-top: 1rem; 
}

@media (max-width: 984px) {

    .checkout.cart-order-summary,
    .checkout.checkout-inner {
        width: 100%;
        max-width: none;
    }

    .links .language-switcher {
        display: block !important;
    }

    .links .language-switcher a {
        padding: 7px 20px;
        background-color: var(--primary-color);
        border: none;
        outline: none;
        font-size: 15px;
        font-family: inherit;
        font-weight: 400;
        cursor: pointer;
        border-radius: var(--border-radius-px);
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-sizing: border-box;
        text-decoration: none;
    }

    .links .language-switcher .dropdown.visible {
        padding-top: 0px !important;
    }

    .links .language-switcher a::after {
        content: "\25BE";
        font-size: 18px;
    }

    .links .language-switcher .dropdown-content {
        background-color: var(--neutral-color) !important;
    }
}


@media (max-width: 800px) {
    .input-row {
        flex-direction: column;
    }

    .container {
        padding: 20px;
    }

    .tabs {
        justify-content: start;
    }
}

@media (max-width: 600px) {
    .product.cart-item>.right {
        flex-direction: column;
    }

    .cart-item .price {
        padding: 5px;
    }
}

@media (max-width: 500px) {
    .products.product-grid {
        grid-template-columns: 1fr;
    }

    .product.cart-item {
        flex-direction: column;
    }

    .product.cart-item img {
        max-width: 100%;
        min-width: 0;
        max-height: none;
        flex-basis: 0;
    }
}