:root {
    --color1: #8340A1;
    --color2: #e83e8c;
    --color3: #068FFF;
    --color4: rgb(243 244 246);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

body.sidebar-open{
    overflow-y: hidden;
}

body.sidebar-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

main {
    max-width: 1560px;
    margin-inline: auto;
}

ul {
    list-style-type: none;
}

input {
    font-family: 'Inter', sans-serif;
}

input:focus {
    outline: none;
    box-shadow: none !important;
    border-color: var(--color2) !important;
}

input[type="checkbox"] {
    accent-color: var(--color2);
}

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

input[type=number] {
    -moz-appearance: textfield;
}

img {
    width: 100%;
}

.fontLeague{
    font-family: 'League Spartan', sans-serif;
}

.saleTimerStrip {
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 0 4px 2px rgb(0, 0, 0, 0.03);
    padding-block: 4px;
    font-weight: 500;
    text-align: center;
    font-weight: 300;
}

.saleTimerStrip span {
    color: var(--color2);
    font-weight: 600;
}

button:focus,
.btn:focus,
a:focus {
    box-shadow: none;
    outline: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    right: 0;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10000;
}

.dropdown-mobile .dropdown-content {
    bottom:46px;
    left:12px;
    min-width: 226px;
}

.dropdown-content a {
    color: black;   
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.1);   
}

.dropdown:hover .dropdown-content {
    display: block;
}

.productContainer {
    display: grid;
    grid-template-columns: 2fr 10fr;
}

.filtersContainer {
    background-color: #F8F9FA;
    position: sticky;
    height: 100dvh;
    overflow-y: scroll;
    top: 0;
    min-width: 255px;
}

.filtersContainer::-webkit-scrollbar {
    display: none;
}

.productCard {
    position: relative;
    /* transition: all .2s ease-in-out; */
    border-radius: 4px;
    z-index: 10;
}

.productCard:hover .productCardHoverBtn,
.productCard:hover .similarBtn,
.productCard:hover .quickViewBtn {
    opacity: 1;
}

.productImgContainer{
    max-width: 240px;
    /* height: 320px; */
    object-fit: contain;
}

.card-img{
    height: 320px;
    width: 100%;
    object-fit: fill;
}

.newTag,
.saleTag,
.hotLookTag,
.preBookTag,
.trendyTag,
.summerTag,
.royalTag,
.weekendTag,
.discountTag {
    position: absolute;
    top: 0;
    left: 22px;
    z-index: 10;
    animation: swing ease-in-out 1s infinite alternate;
    transform-origin: center -30px;
    filter: drop-shadow(4px 4px 2px rgba(0, 0, 0, 0.5));
}

.newTag .string,
.saleTag .string,
.hotLookTag .string,
.preBookTag .string,
.trendyTag .string,
.summerTag .string,
.royalTag .string,
.weekendTag .string,
.discountTag .string {
    position: absolute;
    z-index: 12;
    left: 18px;
    height: 20px;
    width: 2px;
    background-color: var(--color2);
}

.newTag .circle,
.saleTag .circle,
.hotLookTag .circle,
.preBookTag .circle,
.trendyTag .circle,
.summerTag .circle,
.royalTag .circle,
.weekendTag .circle,
.discountTag .circle {
    width: 12px;
    height: 12px;
    border: 2px solid var(--color2);
    border-radius: 50%;
    background-color: white;
    margin: 0 4px;
    position: absolute;
    left: 9px;
    top: 16px;
    z-index: 11;
}

.newTag .tagCard,
.saleTag .tagCard,
.hotLookTag .tagCard,
.preBookTag .tagCard {
    background-color: var(--color1);
    position: absolute;
    top: 12px;
    height: 60px;
    width: 38px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.newTag p {
    position: absolute;
    transform: rotate(-25deg);
    top: 40px;
    left: 4px;
}

.saleTag p {
    position: absolute;
    transform: rotate(-30deg);
    top: 40px;
    left: 2px;
}

.hotLookTag p {
    position: absolute;
    top: 34px;
    left: 3px;
}

.preBookTag p {
    position: absolute;
    top: 34px;
    left: 2px;
}

.trendyTag .tagCard {
    background-color: var(--color1);
    position: absolute;
    top: 12px;
    height: 80px;
    width: 38px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.summerTag .tagCard {
    background-color: var(--color1);
    position: absolute;
    top: 12px;
    height: 88px;
    width: 38px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.royalTag .tagCard {
    background-color: var(--color1);
    position: absolute;
    top: 12px;
    height: 80px;
    width: 38px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.weekendTag .tagCard {
    background-color: var(--color1);
    position: absolute;
    top: 12px;
    height: 96px;
    width: 38px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.discountTag .tagCard {
    background-color: var(--color1);
    position: absolute;
    top: 12px;
    height: 96px;
    width: 38px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.trendyTag p {
    position: absolute;
    top: 48px;
    left: -10px;
    transform: rotate(-90deg);
}

.summerTag p {
    position: absolute;
    top: 52px;
    left: -12px;
    transform: rotate(-90deg);
}

.royalTag p {
    position: absolute;
    top: 44px;
    left: -4px;
    transform: rotate(-90deg);
}

.weekendTag p {
    position: absolute;
    top: 54px;
    left: -15px;
    transform: rotate(-90deg);
}

.discountTag p {
    position: absolute;
    top: 54px;
    left: -12px;
    transform: rotate(-90deg);
}

@keyframes swing {
    0% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

.productCardHoverBtn {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 8px;
    overflow: hidden;
    transition: all .2s ease-in-out;
    z-index: 999;
}

.productCardHoverBtn button {
    padding: 8px 12px;
    background-color: rgb(0, 0, 0, 0.25);
    border: 0;
    transition: all .1s ease-in-out;
}

.productCardHoverBtn button img {
    width: 20px;
    transition: all .2s ease-in-out;
}

.productCardHoverBtn button:hover {
    background-color: rgb(0, 0, 0, 0.5);
}

.productCardHoverBtn button:hover img {
    transform: scale(1.1);
}

.similarBtn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transition: all .2s ease-in-out;
    z-index: 999;
}

.similarBtn button {
    padding: 4px 6px;
    outline: none;
    border: none;
    border-radius: 100vh;
}

.similarBtn button:hover .similarText {
    display: inline;
}

.similarBtn button img {
    width: 20px;
    height: 20px;
}

.similarText {
    display: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--color2);
    margin-left: 4px;
}

.mobileBottomNavbar {
    background-color: var(--color4);
    width: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    display: none;
    z-index: 100;
}

.mobileBottomNavbar button {
    border: 0;
    padding-block: 12px;
    font-size: 14px;
    color: rgb(0, 0, 0, 0.75);
}

.blinkingText {
    animation: blink 1.5s linear infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

a.toolTip {
    position: relative;
    font-size: 12px;
    z-index: 999;
}

a.toolTip::after {
    content: attr(tip);
    z-index: 999;
    background-color: #FCFCFC;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14;
    line-height: 1.25em;
    width: 160px;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, .65);
    position: absolute;
    top: -76px;
    right: -35px;
    display: none;
}

a.toolTip:before {
    position: absolute;
    z-index: 999;
    content: "";
    top: 15px;
    left: 0px;
    border-right: 7px transparent solid;
    border-left: 7px transparent solid;
    display: none;
}

a.toolTip:hover {
    position: relative;
}

a.toolTip:hover:after {
    display: block;
}

a.toolTip:hover:before {
    display: block;
}

.sidebar {
    height: 100%;
    background-color: white;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    transition: 0.3s;
    padding-top: 28px;
    z-index: 100000;
}

.sidebar::-webkit-scrollbar {
    width: 0;
}

.sidebar .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.sidebar-content {
    padding: 15px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
}

.filterSidebarContent {
    display: grid;
    gap: 8px;
    padding: 8px;
}

.productCardSidebar {
    transition: all .2s ease-in-out;
}

.productCardSidebar:hover {
    scale: 1.02;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.productCardSidebar .imageContainer {
    max-width: 240px;
    max-height: 320px;
}

.imageContainer {
    display: inline-block;
    position: relative;
}

.imageContainer img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.imageContainer input[type="checkbox"] {
    z-index: 10;
    zoom: 1.25;
    position: absolute;
    top: 8px;
    left: 8px;
}

.rating {
    font-size: 12px;
    position: absolute;
    bottom: 4px;
    left: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 99999;
}



.newsStrip {
    background-color: rgba(205, 254, 194,0.5);
    color:black;
    display: flex;
    align-items: center;
    gap:4px;
    padding: 4px 8px;
}

.newsStrip p{
    font-weight: 300;
}

.newsStrip .icon{
    background-color: white;
    color:green;
    padding: 4px 8px;
    border-radius:100vh;
}

dialog {
    position: fixed;
    width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    background: white;
    border-radius: 4px;
    border: 0;
    box-shadow: 0 5px 30px 0 #000;
    animation: fadeIn 300ms ease both;
}

dialog::backdrop {
    animation: fadeIn 300ms ease both;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

dialog .x {
    border: none;
    background: none;
    position: absolute;
    top: 14px;
    right: 14px;
    transition: ease filter, transform 0.3s;
    cursor: pointer;
    transform-origin: center;
}

.quickViewDialog .x {
    top: -10px;
    right: 8px;
}

dialog .x:focus {
    outline: none;
}

dialog h2 {
    font-weight: 600;
    font-size: 2rem;
    padding-bottom: 1rem;
}

dialog p {
    font-size: 1rem;
    line-height: 1.3rem;
    padding: 0.5rem 0;
}

dialog p a:visited {
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



.sizeBtn {
    background-color: white;
    border: 2px solid var(--color1);
    width: 40px;
    height: 40px;
    outline: none !important;
    border-radius: 12px;
    margin-top: 0.5rem;
    transition: all 200ms ease;
}

.sizeBtn:focus {
    background-color: var(--color2);
    color: white;
    border-color: var(--color2);
}

.sizeBtn:hover {
    background-color: var(--color2);
    color: white;
    border-color: var(--color2);
}

.stockBtns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stockBtns .outOfStock {
    position: relative;
    background-color: rgb(0, 0, 0, 0.35);
    pointer-events: none;
    cursor: not-allowed;
}

.outOfStock::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 1.5px;
    height: 44px;
    background-color: var(--color1);
    z-index: 2;
}

.colorBtnGroup{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}

.colorBtn {
    padding: 8px;
    border-radius: 100vh;
    border:none;
    outline: none;
    transition: all 200ms ease;
}

.colorBtn:hover {
    transform: scale(1.1);
}

.colorBtn.active {
    border: 2px solid orange;
}

.dialogBtns{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.dialogBtns button{
    width: 100%;
}

.detailLink{
    text-decoration: underline;
    font-weight: 300;
    font-size: 12px;
}

.quickViewBtn{
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all .2s ease-in-out;
    z-index: 999;
    white-space: nowrap;
}

.quickViewBtn button{
    width:max-content;
    outline: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #ffffff50;
}

.quickViewSimilarProducts{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 0.75rem;
}

.swiper {
    max-width: 300px;
    max-height:360px;
}

.quickViewSwiper {
    /* display: block; */
    width: 100%;
    /* height: 80px; */
}

.quickViewSwiper img{
    width: 60px;
    height: 80px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
}

.swiper-pagination-bullet-active {
     background: var(--color2)!important;
 }

.swiper-button-next,
.swiper-button-prev{
    background-color:rgba(255, 255, 255, 0.6);
    font-size: 16px;
    border-radius: 100vh;
    padding: 0px 14px;
}

.swiper-button-next::after,
.swiper-button-prev::after{
    color: var(--color2);
    font-size: 12px
}

.pincodeErrorMsg{
    display: none;
    font-size: 12px;
}

.blinkingText {
    animation: blink 1.5s linear infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (max-width: 1000px) {

    dialog{
        width: 80%;
    }

    .quickViewBtn button{
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .productContainer {
        grid-template-columns: 1fr;
    }

    .filtersContainer,
    .hideOnMobile {
        display: none;
    }

    .mobileBottomNavbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .productCard .productCardHoverBtn,
    .productCard .similarBtn {
        opacity: 1;
    }

    .productCard:hover {
        transform: scale(1);
        box-shadow: none;
    }

    .quickViewBtn {
        display: none;
    }

    dialog{
        width: 80%;
    }
    
}

@media (max-width: 568px) {

    dialog{
        width: 90%;
    }
}

@media (max-width: 500px) {
    .card-img{
        height: 240px;
    }
}
/* Fix for dropdown item visibility */
.dropdown-menu .dropdown-item {
    color: #333 !important;
    background-color: #fff !important;
}

.dropdown-menu .dropdown-item:hover {
    color: #000 !important;
    background-color: #f8f9fa !important;
}
