/* ==========================================================
   Filter Header (Tabs & Sorting) Styles
========================================================== */
.gynura-widget-container {
    position: relative;
	padding: 0 65px 30px 65px;
}

.gynura-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Category Tabs */
.gynura-category-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
    flex-wrap: wrap;
}

.gynura-category-tabs li {
    color: #ffffff;
	font-family: 'On';
    font-size: 32px;
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s;
}

.gynura-category-tabs li:hover {
    color: #572265;
}

.gynura-category-tabs li.active {
    color: #572265;
    font-weight: 900;
}

.gynura-category-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #572265;
    border-radius: 5px 5px 0 0;
}

/* Sorting Wrapper */
.gynura-sort-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    color: #e0e0e0;
	font-family: 'On';
	font-weight: 600;
    font-size: 29px;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gynura-sort-select {
    appearance: none;
    -webkit-appearance: none;
	background: linear-gradient(180deg, #00000014 0%, #cccccc14 60%, #ffffff12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 30px !important;
    color: #fff;
	line-height: normal;
	height: 46px;
    padding: 5px 20px 5px 15px !important;
    font-size: 22px;
	font-weight: 500;
    cursor: pointer;
    outline: none;
    font-family: 'On';
    direction: rtl;
    min-width: 180px;
	box-shadow: 0 0 30px 0 #0000001f !important;
}

.gynura-sort-select option {
	background-color: #cccccc;
    color: #fff;
}

.custom-select-wrapper .select-arrow {
    position: absolute;
    left: 12px;
    pointer-events: none;
    color: #fff;
}

/* Loading Overlay & Spinner */
.gynura-products-grid-wrapper {
    transition: opacity 0.3s ease;
    min-height: 200px;
}

.gynura-loading-overlay {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: all 0.3s;
}

.gynura-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gynura-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #9b59b6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   Products Grid & Cards Styles
========================================================== */
.gynura-no-products {
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 50px 0;
}

.gynura-products-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.gynura-product-card{
	position: relative;
	display: flex;
	flex-direction: column;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
	border-radius: 30px;
	padding: 25px;
}

.gynura-product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  
  background: linear-gradient(90deg, rgb(255 255 255 / 36%) 0%, rgb(0 0 0 / 40%) 50%, rgb(255 255 255 / 38%) 100%);

  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
    
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.product-image-wrapper img{
	width: 100%;
	border-radius: 15px !important;
}

.product-header{
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
}

.product-title a{
	color: #fff;
	font-family: 'On';
	font-weight: 900;
	font-size: 26px !important;
	margin-bottom: 0 !important;
	text-decoration: none !important;
	line-height: 25px;
}

.product-price{
	display: flex;
	gap: 3px;
	color: #fff;
	font-family: 'On';
	font-weight: 700;
	font-size: 24px;
	line-height: 25px;
	margin-bottom: 7px;
}

.product-color-row{
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.product-color-row {
    position: relative;
	margin-top: -10px;
}

.color-dropdown-wrapper {
    position: relative;
}

/* pill */
.color-dropdown-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.color-label-text,
.selected-color-name,
.selected-color-preview,
.dropdown-arrow {
    display: inline-flex;
    align-items: center;
	font-size: 20px;
	font-family: 'On';
	color: #fff;
}

/* preview رنگ */
.selected-color-preview {
    width: 30px;
    height: 20px;
    border-radius: 30px;
    background: linear-gradient(0deg, #ffffff24 0%, #ffffff36 100%);
	border: solid 1px rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
}

/* dropdown */
.color-swatches-container {
    position: absolute;
    top: 110%;
    right: 0;
    z-index: 999;

    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    background: rgb(129 129 129);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 7px -4px 20px rgba(0,0,0,0.2);

    padding: 20px;
    border-radius: 30px;
    min-width: 310px;

    isolation: isolate;
    transform: translateZ(0);
}

.color-circle{
	width: 30px;
	height: 20px;
	border-radius: 30px
}

.color-name{
	font-size: 20px;
	font-family: 'On';
	font-weight: 500;
	color: #fff;
}

/* active state */
.color-swatches-container.active {
    display: grid;
}

/* swatch item */
.color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.row-2{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 5px;
}

.context{
	color: #fff;
	font-family: 'On';
	font-size: 18px;
}

.city{
	margin-bottom: 4px;
}

.city span{
	position: relative;
	padding: 2px 5px;
	color: #fff;
	font-family: 'On';
	font-size: 16px;
	font-weight: 500;
	background: linear-gradient(0deg, #ffffff24 0%, #ffffff36 100%);
	border: solid 1px rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 30px;
}

.product-action{
	width: 100%;
	position: relative;
	z-index: 2;
	margin-top: 15px;
	text-align: center;
	padding: 4px;
	display: inline-block;
	background: radial-gradient(circle at 50% 50%, #3a3939cc 0%, #424242fa 35%, #5a5a5a 80%, #635f5f 90%, #6a6767 100%) !important;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1), inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
	border-radius: 30px;
	border: solid 1px rgba(255, 255, 255, 0.6);
}

.product-details-btn{
	font-family: 'On';
	font-weight: 900;
	font-size: 20px;
	color: #fff;
	text-decoration: none !important;
}

.fa-num{
	font-family: 'On';
	font-size: 19px;
	color: #fff;
}

/* Responsive for Header */
@media (max-width: 768px) {
	.gynura-widget-container{
		padding: 10px;
	}
	
	.gynura-category-tabs{
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
		padding-bottom: 20px;
    }
	
	.gynura-category-tabs li{
		flex: 0 0 auto;
		font-size: 23px;
		padding: 5px 15px;
	}
	
	.gynura-sort-wrap{
		display: none;
	}
	
	.gynura-products-grid{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .gynura-products-grid .gynura-product-card{
        position: sticky;
        top: calc(100px + (var(--i) - 1) * 20px);
		z-index: var(--i) !important;
        margin-bottom: 120px;
        transition: transform 0.3s ease;
    }
	
	.gynura-product-card{
		width: 100% !important;
	}
	
	.color-swatches-container{
		grid-template-columns: repeat(1, 1fr);
		width: 200px;
	}
}