body.woocommerce-account.diiho-commerce { --shop-panel: #fff; --shop-input: #f3f5f7; --shop-text: #102039; --shop-muted: #65748c; --shop-line: #e6ebf1; --account-teal: var(--diiho-accent); }
.woocommerce-account #content { width: 100%; max-width: 1280px; margin-inline: auto; }
.woocommerce-account .diiho-store a,
.woocommerce-account .diiho-store a:is(:hover, :focus, :active, :visited) { text-decoration: none !important; }
.woocommerce-account .diiho-store { width: 100%; max-width: none; padding: 22px 3rem 40px; font: 14px/1.6 Arial, Helvetica, sans-serif; }
.diiho-account-breadcrumb { display: flex; gap: 12px; margin-bottom: 10px; color: #aaa; }
.diiho-account-breadcrumb a { color: inherit; }
html[data-theme=light] .diiho-account-breadcrumb, body.diiho-light-mode .diiho-account-breadcrumb { color: #52617a; }
.woocommerce-account .diiho-account-profile { display: none; }
.woocommerce-account .diiho-commerce-content > .woocommerce { width: 100%; padding: var(--shop-box-padding); background: #ffffffed; border-radius: 14px; box-shadow: 0 3px 16px #233c5810; }
.woocommerce-account.logged-in .diiho-commerce-content > .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 26px; }
.woocommerce-account.woocommerce-lost-password .diiho-commerce-content > .woocommerce,
.woocommerce-account.woocommerce-reset-password .diiho-commerce-content > .woocommerce,
.woocommerce-account .diiho-commerce-content > .woocommerce:not(:has(.woocommerce-MyAccount-navigation)),
.woocommerce-account .diiho-commerce-content > .woocommerce:has(.lost_reset_password, .woocommerce-ResetPassword) {
	display: block;
	width: 100%;
}
.woocommerce-account.logged-in .diiho-commerce-content > .woocommerce::before,
.woocommerce-account.logged-in .diiho-commerce-content > .woocommerce::after { display: none; content: none; }
.woocommerce-account .diiho-store .woocommerce .woocommerce-MyAccount-navigation { float: none; width: 100%; margin: 0; padding: 12px; border-radius: 10px; background: #f5f8fa; }
.woocommerce-account .diiho-store .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; background: none; }
.woocommerce-account .diiho-store .woocommerce-MyAccount-navigation li { list-style: none; margin: 0; }
.woocommerce-account .diiho-store .woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 14px; padding: 15px 12px; border-radius: 6px; text-align: left; color: #344969; font-size: 14px; }
.woocommerce-account .diiho-store .woocommerce-MyAccount-navigation :is(.is-active a, a:hover) { background: color-mix(in srgb, var(--diiho-accent) 12%, white); border-left-color: var(--account-teal); color: var(--diiho-accent); }
.woocommerce-account .woocommerce-MyAccount-navigation a::before { content: '\f105'; width: 20px; text-align: center; font: 900 18px 'Font Awesome 6 Pro'; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before { content: '\f00a'; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before { content: '\f466'; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before { content: '\f019'; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before { content: '\f3c5'; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before { content: '\f007'; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '\f2f5'; }
.woocommerce-account .diiho-store .woocommerce .woocommerce-MyAccount-content { float: none; width: 100%; min-width: 0; padding: 8px 0; background: transparent; border: 0; border-radius: 0; }
.woocommerce-account .woocommerce-MyAccount-content a { color: var(--diiho-accent); }
.diiho-account-welcome { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 26px; }
.diiho-account-welcome > div:first-child { flex: 1; }
.woocommerce-account .diiho-account-welcome h1 { margin: 0 0 6px; color: #102039; font: 700 30px/1.3 Arial, sans-serif; }
.diiho-account-welcome p { color: #65748c; margin: 8px 0 0; }
.diiho-account-welcome .diiho-account-greeting { color: #344969; font-size: 16px; }
.diiho-account-user { display: flex; align-items: center; gap: 14px; max-width: 280px; overflow-wrap: anywhere; }
.diiho-account-user img { width: 72px; height: 72px; border-radius: 50%; }
.diiho-account-user strong, .diiho-account-user span { display: block; }
.diiho-account-user span, .diiho-account-user a { font-size: 12px; color: #65748c; }
.diiho-account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.diiho-account-stat { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid #e1e7ee; border-radius: 8px; background: #fff; }
.diiho-account-stat > span { display: flex; align-items: center; gap: 14px; color: #344969; }
.diiho-account-stat i,
.diiho-account-stat .diiho-svg { color: var(--diiho-accent); font-size: 24px; width: 1em; height: 1em; }
.diiho-account-stat strong { font-size: 28px; line-height: 1; color: #102039; }
.diiho-account-stat small { font-size: 13px; }
.diiho-account-recent > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.woocommerce-account .diiho-store .diiho-account-recent h2 { margin: 0; font-size: 20px; }
.diiho-account-table { overflow-x: auto; }
.diiho-account-table table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 13px; }
.diiho-account-table :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid #e6ebf1; text-align: left; color: #52617a; white-space: nowrap; }
.diiho-account-table th { background: #f3f6f9; font-weight: bold; font-size:10px;}
.diiho-order-status { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef1f5; color: #52617a; font-size: 12px; }
.diiho-order-status.status-completed { background: #dcf4e9; color: #00865c; }
.diiho-order-status.status-processing { background: #e0edff; color: #1561c1; }
.diiho-order-status:is(.status-on-hold, .status-pending) { background: #fff4d8; color: #946500; }
.diiho-order-status:is(.status-cancelled, .status-failed) { background: #fce4e8; color: #bd3349; }
.diiho-order-view { display: inline-block; padding: 3px 12px; border: 1px solid #d5dee8; border-radius: 5px; }
.woocommerce-account .diiho-store .woocommerce .button { background: var(--account-teal); color: #fff; border: 0; border-radius: 7px; }
.woocommerce-account .diiho-store .woocommerce form :is(input.input-text, select, textarea) { border: 0; background: #f3f5f7; border-radius: 8px; }
.woocommerce-account .diiho-store .woocommerce .woocommerce-MyAccount-content address { background: #f3f5f7; border: 0; padding: 20px; }
.woocommerce-account .diiho-store .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .diiho-store .woocommerce :is(.edit-account, .lost_reset_password, .woocommerce-ResetPassword) .diiho-account-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.woocommerce-account .diiho-store .woocommerce .edit-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.woocommerce-account .diiho-store .woocommerce .edit-account > * { grid-column: 1 / -1; min-width: 0; }
.woocommerce-account .diiho-store .woocommerce .edit-account > :is(.form-row-first, .form-row-last) { grid-column: auto; }
.woocommerce-account .diiho-store .woocommerce .edit-account .form-row { float: none; width: 100%; margin: 0; padding: 0; }
.woocommerce-account .diiho-store .woocommerce .edit-account .clear { display: none; }
.woocommerce-account .diiho-store .woocommerce .edit-account input.input-text { box-sizing: border-box; width: 100%; min-height: 46px; border: 0; border-radius: 9px; padding: 12px 14px; background: #f3f5f7; color: #102039; font-size: 14px; line-height: 1.6; box-shadow: none; }
.woocommerce-account .diiho-store .woocommerce .edit-account input.input-text::placeholder { color: #8794a7; opacity: 1; }
.woocommerce-account .diiho-store .woocommerce .edit-account input.input-text:focus { background: color-mix(in srgb, var(--diiho-accent) 10%, white); }
.woocommerce-account .diiho-store .woocommerce .edit-account input[type=password] { padding-right: 44px; }
.woocommerce-account .diiho-store .woocommerce .edit-account fieldset { display: grid; gap: 20px; margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid #e6ebf1; border-radius: 0; }
.woocommerce-account .diiho-store .woocommerce .edit-account legend { font-weight: 600; color: #102039; }
.woocommerce-account .diiho-store .woocommerce .edit-account #account_display_name_description { display: block; margin-top: 7px; color: #65748c; font-size: 12px; }
@media (max-width: 1100px) { .diiho-account-welcome { flex-direction: column; } .woocommerce-account.logged-in .diiho-commerce-content > .woocommerce { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; } }
@media (max-width: 768px) {
 .woocommerce-account .diiho-store .woocommerce .edit-account { grid-template-columns: minmax(0, 1fr); }
 .woocommerce-account .diiho-store { padding-inline: 1rem; }
 .woocommerce-account.logged-in .diiho-commerce-content > .woocommerce { grid-template-columns: minmax(0, 1fr); }
 .woocommerce-account .diiho-store .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .woocommerce-account .diiho-store .woocommerce-MyAccount-navigation li { min-width: 0; }
 .woocommerce-account .diiho-store .woocommerce-MyAccount-navigation li a { height: 100%; overflow-wrap: anywhere; }
 .woocommerce-account .diiho-store .woocommerce-MyAccount-navigation a { padding: 10px; gap: 8px; }
 .diiho-account-stats { grid-template-columns: minmax(0, 1fr); }
 .diiho-account-recent > header { flex-wrap: wrap; }
}

/* ==========================================================================
   Diiho Account Favorite Products Section
   ========================================================================== */
.diiho-account-favorites {
    margin-top: 40px !important;
    padding-top: 0 !important;
    border-top: none !important;
    border: none !important;
}

.diiho-account-favorites__header {
    margin-bottom: 24px;
}

.diiho-account-favorites__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.diiho-account-favorites__title .diiho-svg {
    color: var(--diiho-accent);
    font-size: 20px;
}

.diiho-account-favorites__count {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.diiho-account-favorites__desc {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
}

/* ==========================================================================
   Dark Mode & Light Mode Typography for Title Wrap
   ========================================================================== */
/* Dark Mode (Default / Theme not light) */
.diiho-account-favorites__title-wrap h2,
.diiho-account-favorites__title-wrap h2 span,
.diiho-account-favorites__title,
.diiho-account-favorites__title span,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__title-wrap h2,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__title-wrap h2 span,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__title,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__title span,
html[data-theme=dark] .diiho-account-favorites__title-wrap h2,
html[data-theme=dark] .diiho-account-favorites__title-wrap h2 span,
body.diiho-dark-mode .diiho-account-favorites__title-wrap h2,
body.diiho-dark-mode .diiho-account-favorites__title-wrap h2 span,
body:not(.diiho-light-mode):not([data-theme=light]) .diiho-account-favorites__title-wrap h2,
body:not(.diiho-light-mode):not([data-theme=light]) .diiho-account-favorites__title-wrap h2 span {
    color: #ffffff !important;
}

.diiho-account-favorites__title-wrap p,
.diiho-account-favorites__desc,
.diiho-account-favorites__count,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__title-wrap p,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__desc,
html[data-theme=dark] .diiho-account-favorites__title-wrap p,
body.diiho-dark-mode .diiho-account-favorites__title-wrap p,
body:not(.diiho-light-mode):not([data-theme=light]) .diiho-account-favorites__title-wrap p,
html:not([data-theme=light]) body:not(.diiho-light-mode) .diiho-account-favorites__count,
html[data-theme=dark] .diiho-account-favorites__count,
body.diiho-dark-mode .diiho-account-favorites__count,
body:not(.diiho-light-mode):not([data-theme=light]) .diiho-account-favorites__count {
    color: #94a3b8 !important;
}

/* Light Mode */
html[data-theme=light] .diiho-account-favorites__title-wrap h2,
html[data-theme=light] .diiho-account-favorites__title-wrap h2 span,
html[data-theme=light] .diiho-account-favorites__title,
html[data-theme=light] .diiho-account-favorites__title span,
body.diiho-light-mode .diiho-account-favorites__title-wrap h2,
body.diiho-light-mode .diiho-account-favorites__title-wrap h2 span {
    color: #102039 !important;
}

html[data-theme=light] .diiho-account-favorites__title-wrap p,
html[data-theme=light] .diiho-account-favorites__desc,
body.diiho-light-mode .diiho-account-favorites__title-wrap p,
html[data-theme=light] .diiho-account-favorites__count,
body.diiho-light-mode .diiho-account-favorites__count {
    color: #65748c !important;
}


.diiho-account-favorites__body {
    position: relative;
    min-height: 120px;
}

.diiho-account-favorites__body.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.diiho-account-favorites__loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--shop-muted, #65748c);
}

.diiho-account-favorites__spinner {
    display: inline-block;
    font-size: 28px;
    color: var(--diiho-accent);
    margin-bottom: 8px;
}


.diiho-account-favorites__error {
    text-align: center;
    padding: 30px;
    color: #dc2626;
    font-size: 14px;
}

/* ==========================================================================
   Enforce Grid Mode & Fix Product Card Dimensions
   ========================================================================== */
.woocommerce-page .diiho-store .diiho-account-favorites ul.products,
.diiho-store .diiho-account-favorites ul.products,
.diiho-account-favorites ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    clear: both !important;
}

.diiho-account-favorites ul.products::before,
.diiho-account-favorites ul.products::after {
    display: none !important;
    content: none !important;
}

:is(.diiho-columns-4, .columns-4) .diiho-account-favorites ul.products,
.diiho-columns-4 .diiho-account-favorites ul.products,
.diiho-columns-4.woocommerce .diiho-account-favorites ul.products,
.diiho-account-favorites ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.woocommerce-page .diiho-store .diiho-account-favorites ul.products li.product,
.woocommerce .diiho-store .diiho-account-favorites ul.products li.product,
.diiho-account-favorites ul.products li.product {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1000px) {
    .woocommerce-page .diiho-store .diiho-account-favorites ul.products,
    .diiho-account-favorites ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (max-width: 768px) {
    .diiho-account-favorites {
        margin-top: 28px !important;
        padding-top: 0 !important;
        border-top: none !important;
        border: none !important;
    }
    .diiho-account-favorites__title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .woocommerce-page .diiho-store .diiho-account-favorites ul.products,
    .diiho-account-favorites ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
}

/* ==========================================================================
   Diiho Account Lost / Reset Password Form
   ========================================================================== */
.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) > p:first-of-type {
	margin-top: 0;
	margin-bottom: 22px;
	color: var(--shop-muted, #65748c);
	font-size: 14px;
	line-height: 1.6;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) .form-row {
	float: none !important;
	width: 100% !important;
	margin: 0 0 18px 0 !important;
	padding: 0 !important;
	clear: both;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) .form-row:last-of-type {
	margin-bottom: 0 !important;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) .password-input,
.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text {
	box-sizing: border-box !important;
	width: 100% !important;
	display: block !important;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 0;
	border-radius: 9px;
	background: var(--shop-input, #f3f5f7);
	color: var(--shop-text, #102039);
	font-size: 14px;
	line-height: 1.6;
	box-shadow: none;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text::placeholder {
	color: #8794a7;
	opacity: 1;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text:focus {
	background: color-mix(in srgb, var(--diiho-accent) 10%, white);
	outline: none;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) .password-input {
	position: relative;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) .password-input .show-password-input {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 0;
	color: var(--shop-muted, #65748c);
	z-index: 2;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 32px;
	border-radius: 8px;
	background: var(--account-teal, var(--diiho-accent));
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	transition: opacity 0.2s;
}

.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) button.button:hover {
	opacity: 0.92;
}

@media (max-width: 600px) {
	.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) button.button {
		width: 100%;
	}
}

/* Dark mode support */
html[data-theme='dark'] .woocommerce-account .diiho-commerce-content > .woocommerce,
body.diiho-dark-mode.woocommerce-account .diiho-commerce-content > .woocommerce {
	background: #141b27;
	box-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme='dark'] .woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text,
body.diiho-dark-mode.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text {
	background: #121824;
	color: #e2e8f0;
}

html[data-theme='dark'] .woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text:focus,
body.diiho-dark-mode.woocommerce-account .diiho-commerce-content :is(form.woocommerce-ResetPassword, form.lost_reset_password) input.input-text:focus {
	background: #1a2230;
}


