/* =============================================
   Yooker â€“ My Account / Dashboard styles
   Loaded only on WooCommerce account pages
   ============================================= */

/* ---- Variables ---- */
:root {
	--yk-blue:         #004E3D;
	--yk-blue-light:   #003127;
	--yk-green:        #CEAA5D;
	--yk-white:        #ffffff;
	--yk-black:        #000000;
	--yk-text-muted:   #888888;
	--yk-text-body:    #444444;
	--yk-border:       #F9EFD7;
	--yk-bg-card:      #F9EFD7;
	--yk-shadow:       0 2px 8px rgba(0, 0, 0, .00);
	--yk-shadow-hover: 0 6px 20px rgba(62, 97, 252, .15);
	--yk-radius:       16px;
	--yk-radius-sm:    8px;
	--yk-radius-img:   12px;
}

/* ---- Shared button ---- */
.yk-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--yk-radius-sm);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: opacity .2s ease, transform .1s ease;
	cursor: pointer;
	border: 2px solid transparent;
}
.yk-btn:hover {
	opacity: .88;
	transform: translateY(-0px);
	text-decoration: none;
}
.yk-btn--blue {
	background: var(--yk-blue);
	color: var(--yk-white) !important;
	border-color: var(--yk-blue);
}
.yk-btn--green {
	border-radius: var(--Corner-radius-Buttons, 8px);
	border-bottom: 2px solid var(--color-goud-200, #CEAA5D);
	background: var(--color-goud-100, #E7CF9D);
	color: var(--Goud-Goud-600, var(--color-goud-600, #644606));
}
.yk-btn--outline {
	background: transparent !important;
	color: var(--yk-blue) !important;
	border-color: var(--yk-blue);
}

/* ---- Dashboard wrapper ---- */
.yk-dashboard {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* ---- Welcome banner ---- */
.yk-dashboard-welcome {
	position: relative;
	background: var(--yk-blue);
	border-radius: var(--yk-radius);
	padding: 32px;
	overflow: hidden;
	color: var(--yk-white);
}
.yk-dashboard-welcome__content {
	position: relative;
	z-index: 2;
	max-width: 580px;
}
.yk-dashboard-welcome__title {
	font-size: 36px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--yk-white) !important;
	margin-bottom: 12px;
}
.yk-dashboard-welcome__subtitle {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
	margin: 0;
}
.yk-dashboard-welcome__deco {
	position: absolute;
	right: -160px;
	top: -160px;
	width: 480px;
	height: 480px;
	background: rgba(255,255,255,.10);
	border-radius: 50%;
	pointer-events: none;
	z-index: 1;
}

/* ---- Section title ---- */
.yk-dashboard-section__title {
	font-size: 28px;
	font-weight: 600;
	color: var(--yk-black) !important;
	margin-bottom: 24px;
	line-height: 1.4;
}
.yk-section-divider {
	border: none;
	border-top: 1px solid var(--yk-border);
	margin: 0 0 24px;
}

/* ---- Notifications ---- */
.yk-notifications-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.yk-notification-card {
	background: var(--yk-border);
	border: 1px solid var(--yk-border);
	border-radius: var(--yk-radius);
	padding: 24px 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-shadow: var(--yk-shadow);
}
.yk-notification-card__title {
	font-size: 18px;
	font-weight: 500;
	color: var(--yk-black) !important;
	margin: 0 0 8px;
}
.yk-notification-card__desc {
	font-size: 16px;
	color: var(--yk-text-body);
	margin: 0;
	line-height: 1.6;
}
.yk-notification-card .yk-btn {
	align-self: flex-start;
}

/* ---- Quick navigation tiles ---- */
.yk-quicknav-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.yk-quicknav-tile {
	background: var(--yk-border);
	border: 1px solid var(--yk-border);
	border-radius: var(--yk-radius);
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-decoration: none !important;
	box-shadow: var(--yk-shadow);
	transition: box-shadow .2s ease, transform .15s ease;
}
.yk-quicknav-tile:hover {
	box-shadow: var(--yk-shadow-hover);
	transform: translateY(-2px);
	text-decoration: none;
}
.yk-quicknav-tile__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: var(--yk-blue-light);
	border-radius: 50%;
	color: #ffffff;
	font-size: 22px;
	transition: background .2s ease, color .2s ease;
}
.yk-quicknav-tile:hover .yk-quicknav-tile__icon {
	background: var(--yk-blue);
	color: var(--yk-white);
}
.yk-quicknav-tile__label {
	font-size: 16px;
	font-weight: 500;
	color: var(--yk-black);
	text-align: center;
}

/* ---- Last order ---- */
.yk-lastorder-card {
	background: var(--yk-border);
	border: 1px solid var(--yk-border);
	border-radius: var(--yk-radius);
	padding: 24px 32px;
	margin-bottom: 20px;
	box-shadow: var(--yk-shadow);
}
.yk-lastorder-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.yk-lastorder-number {
	font-size: 16px;
	color: var(--yk-black);
}
.yk-lastorder-viewlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 700;
	color: var(--yk-blue) !important;
	text-decoration: none;
}
.yk-lastorder-viewlink:hover {
	text-decoration: underline;
}
.yk-lastorder-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--yk-border);
	margin-bottom: 24px;
}
.yk-lastorder-meta__info {
	display: flex;
	gap: 48px;
}
.yk-lastorder-meta__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.yk-lastorder-meta__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--yk-text-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.yk-lastorder-meta__value {
	font-size: 16px;
	font-weight: 400;
	color: var(--yk-black);
}
.yk-lastorder-meta__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---- Product cards (last order) ---- */
.yk-lastorder-products {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.yk-product-card {
	min-width: 150px;
	width: 150px;
	flex-shrink: 0;
}
.yk-product-card__img {
	width: 150px;
	height: 125px;
	border-radius: var(--yk-radius-img);
	overflow: hidden;
	background: var(--yk-bg-card);
	margin-bottom: 12px;
}
.yk-product-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.yk-product-card__name {
	font-size: 14px;
	font-weight: 700;
	color: var(--yk-black);
	margin: 0 0 4px;
	line-height: 1.4;
}
.yk-product-card__sku {
	font-size: 13px;
	color: var(--yk-text-muted);
	margin: 0 0 8px;
}
.yk-product-card__review {
	font-size: 14px;
	font-weight: 700;
	color: var(--yk-blue) !important;
	text-decoration: none;
	display: block;
}
.yk-product-card__review:hover {
	text-decoration: none;
}
.woocommerce-MyAccount-content .yk-order-card__products .yk-product-card__review.puro-write-review-btn{
	background: none !important;
	padding: 0px;
}
.yk-seeall-btn {
	display: inline-flex;
}

/* ============================================= */
/* Orders page                                   */
/* ============================================= */

/* ---- Page wrapper ---- */
.yk-orders-page {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ---- Filter bar ---- */
.yk-orders-filterbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding-bottom: 24px;
	border: none;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}
.yk-orders-filterbar__title {
	font-size: 24px;
	font-weight: 700;
	color: var(--yk-black) !important;
	margin: 0;
	line-height: 1.3;
}
.yk-orders-filterbar__filters {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---- Filter dropdown ---- */
.yk-filter-dropdown {
	position: relative;
}
.yk-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	height: 40px;
	background: var(--yk-white);
	border: 1.5px solid #c8b87a;
	border-radius: var(--yk-radius-sm);
	font-size: 14px;
	font-weight: 500;
	color: var(--yk-text-body);
	cursor: pointer;
	transition: border-color .2s, color .2s;
	white-space: nowrap;
}
.yk-filter-btn:hover,
.yk-filter-dropdown.is-open .yk-filter-btn {
	border-color: var(--yk-blue);
	color: var(--yk-blue);
}
.yk-filter-btn svg {
	flex-shrink: 0;
	transition: transform .2s;
}
.yk-filter-dropdown.is-open .yk-filter-btn svg {
	transform: rotate(180deg);
}
.yk-filter-dropdown__menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 180px;
	background: var(--yk-white);
	border: 1.5px solid #c8b87a;
	border-radius: var(--yk-radius-sm);
	box-shadow: 0 8px 28px rgba(0,0,0,.14);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 100;
}
.yk-filter-dropdown__menu li {
	margin: 0;
	padding: 0;
}
.yk-filter-dropdown.is-open .yk-filter-dropdown__menu {
	display: block;
}
.yk-filter-option {
	display: block;
	width: 100%;
	padding: 9px 16px;
	background: none;
	border: none;
	text-align: left;
	font-size: 14px;
	color: var(--yk-text-body);
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s;
}
.yk-filter-option:hover,
.yk-filter-option.is-active {
	background: var(--yk-bg-card);
	color: var(--yk-blue);
}
.yk-filter-option.is-active {
	font-weight: 700;
}

/* ---- Order list ---- */
.yk-orders-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ---- Order card ---- */
.yk-order-card {
	padding: 28px 0;
	border-bottom: 1px solid var(--yk-border);
}
.yk-order-card:first-child {
	border-top: none;
}

/* Card header */
.yk-order-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.yk-order-card__number {
	font-size: 16px;
	font-weight: 400;
	color: var(--yk-black);
}
.yk-order-card__number strong {
	font-weight: 700;
}
.yk-order-card__viewlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--yk-blue) !important;
	text-decoration: none !important;
	transition: gap .15s;
}
.yk-order-card__viewlink:hover {
	gap: 10px;
	text-decoration: none;
}

/* Card meta row */
.yk-order-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}
.yk-order-card__meta-info {
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
}
.yk-order-card__meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.yk-order-card__meta-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--yk-text-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.yk-order-card__meta-value {
	font-size: 15px;
	font-weight: 400;
	color: var(--yk-black);
}
.yk-order-card__meta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Status badge colours */
.yk-order-status {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	text-align: center;
}
.yk-order-status--completed  { background: #e6f4ea; color: #1e7e34; }
.yk-order-status--processing { background: #e8f0fe; color: #1a56db; }
.yk-order-status--pending    { background: #fff3cd; color: #856404; }
.yk-order-status--on-hold    { background: #fff3cd; color: #856404; }
.yk-order-status--cancelled  { background: #fde8e8; color: #c81e1e; }
.yk-order-status--refunded   { background: #f3e8ff; color: #7e22ce; }
.yk-order-status--failed     { background: #fde8e8; color: #c81e1e; }

/* Product grid inside order card */
.yk-order-card__products {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}
.yk-order-card__products::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}
/* Also hide on dashboard last-order */
.yk-lastorder-products {
	-webkit-overflow-scrolling: touch;
}

/* ---- Pagination ---- */
.yk-orders-pagination {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 32px;
}
.yk-orders-loadmore {
	min-width: 160px;
	justify-content: center;
}

/* ---- Empty state ---- */
.yk-orders-empty {
	padding: 48px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}
.yk-orders-empty p {
	font-size: 16px;
	color: var(--yk-text-muted);
	margin: 0;
}

/* ---- Loading spinner ---- */
.yk-orders-loading {
	padding: 40px 0;
	text-align: center;
	font-size: 28px;
	color: var(--yk-blue);
}

/* ---- Small button variant ---- */
.yk-btn--sm {
	padding: 8px 16px;
	font-size: 13px;
}

/* ---- Already-reviewed badge ---- */
.yk-product-card__reviewed {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--yk-text-muted);
}

/* ---- Date range picker ---- */
.yk-filter-datepicker {
	position: relative;
}
/* gap already set to 8px in base .yk-filter-btn */
.yk-filter-btn--date .yk-chevron {
	transition: transform .2s;
}
.yk-filter-datepicker.is-open .yk-filter-btn--date .yk-chevron {
	transform: rotate(180deg);
}
.yk-datepicker-panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 240px;
	background: var(--yk-white);
	border: 1.5px solid #c8b87a;
	border-radius: var(--yk-radius-sm);
	box-shadow: 0 8px 28px rgba(0,0,0,.14);
	padding: 16px;
	z-index: 100;
}
.yk-datepicker-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
}
.yk-datepicker-row label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--yk-text-muted);
}
.yk-datepicker-row input[type="date"] {
	width: 100%;
	padding: 8px 10px;
	border: 1.5px solid #c8b87a;
	border-radius: var(--yk-radius-sm);
	font-size: 14px;
	color: var(--yk-text-body);
	background: var(--yk-white);
	box-sizing: border-box;
	    min-height: 1rem;
    line-height: 1;
}
.yk-datepicker-row input[type="date"]:focus {
	outline: none;
	border-color: var(--yk-blue);
}
.yk-datepicker-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	padding-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.yk-notifications-grid {
		grid-template-columns: 1fr;
	}
	.yk-quicknav-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.yk-lastorder-meta {
		flex-direction: column;
		align-items: flex-start;
	}
	.yk-dashboard-welcome__title {
		font-size: 26px;
	}
	/* Orders page */
	.yk-orders-filterbar {
		flex-direction: column;
		align-items: flex-start;
	}
	.yk-order-card__meta {
		flex-direction: column;
		align-items: flex-start;
	}
	.yk-order-card__meta-info {
		gap: 24px;
	}
}
@media (max-width: 600px) {
	.yk-quicknav-grid {
		grid-template-columns: repeat(1, 1fr);
	}
	.yk-lastorder-meta__info {
		flex-direction: column;
		gap: 16px;
	}
	.yk-dashboard-welcome {
		padding: 24px 20px;
	}
	/* Orders page */
	.yk-orders-filterbar__filters {
		width: 100%;
	}
	.yk-filter-dropdown {
		flex: 1;
	}
	.yk-filter-btn {
		width: 100%;
		justify-content: space-between;
	}
	.yk-order-card__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.yk-order-card__meta-info {
		flex-direction: column;
		gap: 16px;
	}

	/* ---- Visible product slider on mobile ---- */
	.yk-order-card__products,
	.yk-lastorder-products {
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
		scrollbar-color: #c8b87a rgba(200,184,122,.20);
		padding-bottom: 10px;
		/* Fade right edge to hint more content */
		-webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
		mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
	}
	.yk-order-card__products::-webkit-scrollbar,
	.yk-lastorder-products::-webkit-scrollbar {
		display: block;
		height: 4px;
	}
	.yk-order-card__products::-webkit-scrollbar-track,
	.yk-lastorder-products::-webkit-scrollbar-track {
		background: rgba(200,184,122,.20);
		border-radius: 99px;
	}
	.yk-order-card__products::-webkit-scrollbar-thumb,
	.yk-lastorder-products::-webkit-scrollbar-thumb {
		background: #c8b87a;
		border-radius: 99px;
	}
	.yk-order-card__products .yk-product-card,
	.yk-lastorder-products .yk-product-card {
		scroll-snap-align: start;
	}
}




/* Extra */
.woocommerce-MyAccount-navigation-link a{
    text-decoration: none !important;
}
.woocommerce-MyAccount-content .woocommerce-customer-details h2.woocommerce-column__title, .woocommerce-Address h2{
	font-size: 1.4rem;
}

.woocommerce-Address address{
	background: var(--color-alt-content-secondary);
    color: #eee;
    display: flex;
    width: max-content;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.woocommerce-address-fields .woocommerce-address-fields__field-wrapper{
	    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}
.woocommerce-address-fields .woocommerce-address-fields__field-wrapper .form-row {
    float: left;
    width: 48%;
}

.woocommerce-MyAccount-content .products li.product{
	border: 1px solid var(--color-alt-content-border);
	border-radius: 16px;
}
.woocommerce-MyAccount-content .products li.product a img{
	max-width: 120px;
	margin-left: auto;
	margin-right: auto;
}