:root {
    --primary-color: #ff6d25;
    --secondary-color: #f7b42f;
    --tertiary-color: #7f3300;
    --warning-color: rgb(249, 82, 82);
    --text-gray-color: #545772;
    --site-width: 1360px;
    --common-box-shadow: 0 0 16px rgba(0, 0, 0, 0.02);
    --common-box-shadow-hover: 0 0 12px rgba(0, 0, 0, 0.15);
    --header-main-height: 60px;
    --header-sub-height: 40px;
    --header-height: calc(var(--header-main-height) + var(--header-sub-height));

    @media only screen and (max-width: 600px) {
        --header-main-height: 60px;
    }
}
/* ******** */
@font-face {
    font-family: "Amazon Ember";
    font-weight: 200;
    src: url(https://m.media-amazon.com/images/S/sash/Dv1WQ5DdeMS5qP7.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/e0LnMbFWJC-TMQz.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    font-weight: 200;
    font-style: italic;
    src: url(https://m.media-amazon.com/images/S/sash/ozb5-CLHQWI6Soc.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/twzZHebXjCHBb6v.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    src: url(https://m.media-amazon.com/images/S/sash/pDxWAF1pBB0dzGB.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/kfKKBuoqcD$AUKL.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    font-style: italic;
    src: url(https://m.media-amazon.com/images/S/sash/WOnTLzkiaEccV7F.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/JJsp0ZvgpfwzJM6.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    font-weight: 500;
    src: url(https://m.media-amazon.com/images/S/sash/VjTR4RqBzY0mUYx.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/XIvhNCZAsrT80Wz.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    font-weight: 500;
    font-style: italic;
    src: url(https://m.media-amazon.com/images/S/sash/KwhNPG8Jz-Vz2X7.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/YAEPfuhs1l-argd.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    font-weight: 700;
    src: url(https://m.media-amazon.com/images/S/sash/KFPk-9IF4FqAqY-.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/mzVbGSgvdBfRLX9.woff) format("woff");
}

@font-face {
    font-family: "Amazon Ember";
    font-style: italic;
    font-weight: 700;
    src: url(https://m.media-amazon.com/images/S/sash/2SazJx$EeTHfhMN.woff2) format("woff2"),
        url(https://m.media-amazon.com/images/S/sash/CjbL$jCCegyfqZ7.woff) format("woff");
}

* {
    box-sizing: border-box;
}
body {
    line-height: 1.7;
    background: #f7f7f7;
    margin: 0;
    font-family: "Amazon Ember", "Meiryo", Arial, sans-serif;
    font-size: 14px;
    color: #222;
    overflow-y: scroll;
}
body.template-site {
    margin-top: var(--header-main-height);
}
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    color: var(--primary-color);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
select,
textarea {
    height: 36px;
    background: rgba(0, 0, 0, 0.02);
    border: 0;
    border-radius: 3px;
    padding-left: 5px;
    transition: 150ms;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.02);
    outline: 0;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    background: #fff;
    box-shadow: 0 0 0 1.5px var(--primary-color);
}

main {
    display: block;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 9999px;
    transition: 150ms;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #ff720d88;
}

::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.1);
}

.global-hidden {
    display: none !important;
}
@media only screen and (min-width: 600px) {
    .mobile-only {
        display: none !important;
    }
}
@media only screen and (max-width: 600px) {
    .desktop-only {
        display: none !important;
    }
}

#common-primary-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-main-height);
    background: #fff;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);

    .inner {
        display: flex;
        max-width: var(--site-width);
        height: 100%;
        margin: auto;
    }
    .inner > * {
        display: flex;
        align-items: center;
        height: 100%;
        flex: 1;
    }
    .inner > .left {
        padding-left: 16px;
    }
    .inner > .center {
        flex: 1.5;
    }
    .inner > .right {
        justify-content: flex-end;
        gap: 4px;
    }
    .logo {
        display: block;
        height: 90%;
    }
    .logo img {
        display: block;
        aspect-ratio: 356 / 128;
        height: 100%;
    }

    .search-bar {
        display: flex;
        align-items: center;
        width: 100%;
        height: 38px;
        border: solid 2px var(--text-gray-color);
        border-radius: 9999px;
        overflow: hidden;
        transition: 150ms;
    }
    .search-bar:has(:focus) {
        border-color: #797c99;
    }
    .search-bar input {
        flex: 1;
        height: 100%;
        border: 0;
        outline: 0;
        padding-left: 16px;
        box-shadow: unset !important;
    }
    .search-bar .button {
        height: calc(100% - 4px);
        background: var(--text-gray-color);
        margin-right: 2px;
        color: #fff;
        font-size: 16px;
    }

    .header-icon-button {
        display: flex;
        align-items: center;
        border-radius: 12px;
        padding: 0 12px;
        color: var(--text-gray-color);
        transition: 150ms;
    }
    .header-icon-button:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    .header-icon-button .icon {
        position: relative;
        margin-right: 8px;
        font-size: 32px;
    }
    .header-icon-button .label {
        font-weight: bold;
        font-size: 12px;
    }

    .cart .icon .quantity {
        position: absolute;
        top: 4px;
        right: -4px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 18px;
        height: 18px;
        background: var(--warning-color);
        border-radius: 9999px;
        padding: 0 3px;
        font-size: 12px;
        font-weight: bold;
        color: #fff;
    }
    .cart .icon .quantity.hidden {
        display: none;
    }

    .guest-sign .label {
        line-height: 1.2;
        font-weight: normal;
    }
    .member-sign .label {
        line-height: 1.2;
        font-weight: normal;
    }
    .member-sign .label i {
        display: inline-block;
        line-height: 10px;
        font-size: 150%;
        transform: translateY(2px);
    }
}

#common-secondary-header {
    height: var(--header-sub-height);
    background: var(--secondary-color);
    border-bottom: solid 1px #ddd;
    color: var(--tertiary-color);

    .inner {
        position: relative;
        display: flex;
        align-items: center;
        max-width: var(--site-width);
        height: 100%;
        margin: auto;
        overflow: hidden;
    }
    .inner::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: 64px;
        background: linear-gradient(90deg, transparent, var(--secondary-color));
        pointer-events: none;
    }
    .floating {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        width: max-content;
        padding: 0 20px;
    }
    .floating .link {
        display: flex;
        align-items: center;
        height: 32px;
        border-radius: 9999px;
        padding: 0 12px;
        color: inherit;
        font-weight: bold;
        transition: 150ms;
    }
    .floating .link:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

#common-mobile-primary-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: var(--header-main-height);
    background: #fff;
    padding: 8px 12px;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);

    .icon-button {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
    }
    .logo {
        height: 50px;
    }
    .logo img {
        display: block;
        height: 100%;
        aspect-ratio: 356 / 128;
    }
}

#common-mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 56px;
    background: #fff;
    padding: 8px 12px;
    z-index: 1000;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);

    .menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.1;
    }
    .menu-item .icon {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
        font-size: 20px;
    }
    .menu-item span {
        font-size: 10px;
    }

    .menu-item.cart-icon .quantity {
        position: absolute;
        top: -4px;
        right: -4px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 13px;
        height: 13px;
        background: var(--warning-color);
        border-radius: 9999px;
        padding: 0 3px;
        font-size: 8px;
        font-weight: bold;
        color: #fff;
    }
    .menu-item.cart-icon .quantity.hidden {
        display: none;
    }
}

#common-mobile-left-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: 200ms;

    .inner {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        background: #fff;
        padding: 16px 24px;
        z-index: 2002;
        overflow-y: scroll;
        transition: 200ms;
    }
    .background {
        position: absolute;
        inset: 0;
        flex: 1;
        z-index: 2001;
    }

    .search-bar {
        display: flex;
        align-items: center;
        width: 100%;
        height: 38px;
        border: solid 2px var(--text-gray-color);
        border-radius: 9999px;
        margin-bottom: 8px;
        overflow: hidden;
        transition: 150ms;
    }
    .search-bar:has(:focus) {
        border-color: #797c99;
    }
    .search-bar input {
        flex: 1;
        height: 100%;
        border: 0;
        outline: 0;
        padding-left: 16px;
        box-shadow: unset !important;
    }
    .search-bar .button {
        height: calc(100% - 4px);
        background: var(--text-gray-color);
        margin-right: 2px;
        color: #fff;
        font-size: 16px;
    }

    .categories {
        display: flex;
        flex-direction: column;
    }
    .categories .category {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 40px;
        font-size: 90%;
        font-weight: bold;
    }
    .categories .category .icon {
        opacity: 0.8;
        font-size: 110%;
        color: var(--primary-color);
    }
    .categories .category span {
        flex: 1;
    }

    &:not(.active) {
        opacity: 0;
        pointer-events: none;
        .inner {
            transform: translateX(-100%);
        }
    }
}

#common-mobile-right-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: 200ms;

    .inner {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        background: #fff;
        padding: 16px 24px;
        z-index: 2002;
        overflow-y: scroll;
        transition: 200ms;
    }
    .background {
        position: absolute;
        inset: 0;
        flex: 1;
        z-index: 2001;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        padding-top: 8px;
    }
    .menu-links .menu-link {
        display: flex;
        align-items: center;
        gap: 12px;
        height: 48px;
        font-size: 90%;
        font-weight: bold;
        color: var(--text-gray-color);
        transition: 150ms;
    }
    .menu-links .menu-link:hover {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }
    .menu-links .menu-link .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
        opacity: 0.8;
        font-size: 18px;
        color: var(--primary-color);
    }
    .menu-links .menu-link span {
        flex: 1;
    }
    .menu-links .menu-divider {
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin: 8px 0;
    }

    &:not(.active) {
        opacity: 0;
        pointer-events: none;
        .inner {
            transform: translateX(100%);
        }
    }
}

#common-footer {
    min-height: 400px;
    background: #484953;
    color: #fff;

    .inner {
        max-width: var(--site-width);
        margin: auto;
    }
    .features {
        display: flex;
        padding: 24px 0;
        @media only screen and (max-width: 600px) {
            flex-direction: column;
        }
    }
    .features .feature {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        @media only screen and (max-width: 600px) {
            padding: 16px 0;
        }
    }
    .features .feature:not(:last-child) {
        border-right: solid 1px rgba(255, 255, 255, 0.1);
    }
    .features .feature .name {
        margin-bottom: 8px;
        font-size: 140%;
        color: var(--secondary-color);
    }
    .features .feature .description {
        color: rgba(255, 255, 255, 0.7);
    }

    .columns {
        display: flex;
        padding: 32px 0;
        @media only screen and (max-width: 600px) {
            flex-direction: column;
        }
    }
    .columns .column {
        flex: 1;
        padding: 0 32px;
        font-size: 15px;
        @media only screen and (max-width: 600px) {
            padding: 10px 16px 20px;
        }
    }
    .columns .column.primary-column {
        flex: 1.5;
    }
    .columns .column .column-header {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        font-size: 130%;
        font-weight: bold;
    }
    .columns .column .column-header::after {
        content: "";
        flex: 1;
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin-left: 20px;
    }
    .columns .column .link {
        padding: 3px 0;
    }
    .columns .column .link a {
        color: rgba(255, 255, 255, 0.7);
    }

    .primary-column .logo {
        display: block;
        width: fit-content;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 18px;
    }
    .primary-column .logo img {
        display: block;
        aspect-ratio: 356 / 128;
        height: 48px;
    }

    .copyright {
        background: rgba(0, 0, 0, 0.2);
        padding: 16px 0;
        text-align: center;
    }
}

#wrapper > main {
    min-height: calc(100vh - 380px);
    padding: 32px 0 64px;
    @media only screen and (max-width: 600px) {
        padding: 24px 0 48px;
    }
}

.page-content {
    max-width: var(--site-width);
    margin: auto;
    padding: 0 10px;
    @media only screen and (max-width: 600px) {
        padding: 0 6px;
    }
}
.page-content.narrow {
    max-width: calc(var(--site-width) * 0.8);
}
.page-content.full {
    padding: 0 20px;
    @media only screen and (max-width: 600px) {
        padding: 0 6px;
    }
}

.white-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--common-box-shadow);
}

.page-title {
    border-bottom: solid 1px rgba(0, 0, 0, 0.2);
    margin-bottom: 32px;
    padding-bottom: 5px;
    color: var(--text-gray-color);
}
.page-title h1 {
    margin: 0;
    font-size: 27px;
    font-weight: bold;
}

.page-section-title {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    @media only screen and (max-width: 600px) {
        padding: 12px 0;
    }
}
.page-section-title .title {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 20px;
    border-radius: 16px;
    @media only screen and (max-width: 600px) {
        font-size: 18px;
    }
}
.page-section-title .title::before {
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 100vmax;
    margin-right: 16px;
    content: "";
}
.page-section-title .title::after {
    flex: 1;
    display: block;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 100vmax;
    margin-left: 32px;
    content: "";
}

.page-section-title-sub {
    display: flex;
    justify-content: center;
    padding: 42px 0;
}
.page-section-title-sub .title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    background: rgb(195, 195, 199);
    border-radius: 100vmax;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    padding: 4px 32px;
}

.page-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 32px 0;
}
.page-action-notice {
    padding: 20px 0;
    color: #666;
    font-size: 90%;
    text-align: center;
}

.page-no-content {
    padding: 80px 10px 50px;
    font-size: 90%;
    color: #777;
    text-align: center;
}

.error-container {
    max-width: 700px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin: 50px auto;
    padding: 30px 20px;
    text-align: center;
}
.error-container .error-title {
    margin-bottom: 5px;
    font-size: 150%;
}
.error-container .error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}
.error-container .error-actions .button {
    max-width: 400px;
    width: 100%;
    background: #ffffff;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    background: #e7e7e7;
    border: 0;
    border-radius: 100vmax;
    padding: 0 16px;
    font-weight: bold;
    color: #666666;
    transition: 150ms;
    user-select: none;
}
.button.primary {
    background: var(--primary-color);
    color: #fff;
    &:not(:disabled):hover {
        filter: brightness(1.2);
    }
}
.button.danger {
    background: var(--warning-color);
    color: #fff;
    &:not(:disabled):hover {
        filter: brightness(1.2);
    }
}
.button:not(:disabled):hover {
    filter: brightness(1.05);
}
.button:disabled {
    opacity: 0.7;
}

.dialog-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0 10px 10vh;
    backdrop-filter: grayscale(0.7);
    z-index: 1000000;
    transition: 150ms;
}
.dialog-overlay:not(.active) {
    opacity: 0;
    pointer-events: none;
}
.loading-overlay .loading-circle {
    width: 80px;
    height: 80px;
    border: solid 4px #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: loading-overlay-loading linear 500ms infinite;
}

.page-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}
.page-loading .loading-circle {
    width: 80px;
    height: 80px;
    border: solid 4px #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: loading-overlay-loading linear 500ms infinite;
}

@keyframes loading-overlay-loading {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.common-dialog {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    min-height: 120px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 0 26px rgba(0, 0, 0, 0.1);
    transition: opacity 150ms;
}
.common-dialog > .title {
    margin-bottom: 10px;
    font-size: 130%;
}
.common-dialog > .content {
    flex: 1;
}
.common-dialog > .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.common-dialog > .actions > .button {
    min-width: 100px;
}

.error-dialog {
    min-width: 400px;
    max-width: 1000px;
    @media only screen and (max-width: 600px) {
        width: calc(100vw - 24px);
    }
}

.spacer {
    flex: 1;
}

.common-form .field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    @media only screen and (max-width: 600px) {
        flex-direction: column;
        gap: 6px;
    }
}
.common-form .field:not(:last-child) {
    border-bottom: solid 1px rgba(0, 0, 0, 0.1);
}
.common-form .field > .label {
    width: 120px;
    font-size: 90%;
    font-weight: bold;
    color: var(--text-gray-color);
    @media only screen and (max-width: 600px) {
        width: 100%;
    }
}
.common-form .field > .value {
    flex: 1;
    @media only screen and (max-width: 600px) {
        width: 100%;
    }

    input,
    textarea,
    select {
        width: 100%;
    }
    textarea {
        height: 200px;
        padding: 6px;
        font-family: inherit;
    }
}
.common-form .form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}
.common-form .form-actions .button {
    min-width: 150px;
    height: 38px;
}
.common-form .static-value {
    display: flex;
    align-items: center;
    border: solid 1px rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    padding: 6px 12px;
    color: rgba(0, 0, 0, 0.7);
}

.page-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 10px;
}
.page-loading .loading-circle {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 250ms linear infinite;
}

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

.common-form {
    .form-field {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        &:not(:last-child) {
            border-bottom: solid 1px rgba(0, 0, 0, 0.15);
        }
    }
    .form-field .field-label {
        width: 150px;
        font-size: 90%;
        font-weight: bold;
    }
    .form-field .field-value {
        flex: 1;
    }
    .form-field .field-value > :is(input, select, textarea) {
        width: 100%;
    }
    .form-field .field-value > .field-error {
        width: 100%;
        line-height: 1.3;
        font-size: 80%;
        color: rgba(255, 0, 0, 0.9);
    }
    .form-field .field-value > .field-error:nth-child(1 of .field-error) {
        margin-top: 5px;
    }
}

.labeled-option {
    display: flex;
    gap: 10px;
    align-items: center;
    user-select: none;
}
.language-selector {
    background-color: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
    padding: 1rem 0;
}

.language-selector .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.language-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

.language-options {
    display: flex;
    gap: 0.5rem;
}

.language-option {
    background: none;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.language-option.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.language-option.active:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .language-selector .inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .language-label {
        font-size: 0.8rem;
    }

    .language-option {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}
.large-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    height: 46px;
    background: var(--primary-color);
    border: 0;
    border-radius: 100vmax;
    padding: 0 22px;
    color: #ffffff;
    font-size: 110%;
    transition: filter 150ms;
}
.large-button:hover {
    filter: brightness(1.2);
}
.large-button.gray {
    background: #e7e7e7;
    color: #666666;
}
.order-list {
    display: flex;
    flex-direction: column;
    gap: 32px;

    .order {
        background: #fff;
        border: solid 1px #ddd;
        border-radius: 12px;
        overflow: hidden;
    }
    .order .order-header {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 32px;
        align-items: flex-start;
        background: #eeeeee;
        border-bottom: solid 1px #ddd;
        padding: 14px 18px;
    }
    .order .order-header section .label {
        color: #777;
        font-size: 90%;
    }
    .order .order-header .summary {
        color: #777;
        font-size: 90%;
        text-align: right;
        @media only screen and (max-width: 600px) {
            width: 100%;
            text-align: center;
        }
    }
    .order .order-header .summary .order-uuid {
        @media only screen and (max-width: 600px) {
            display: none;
        }
    }
    .order .order-header .summary .view-detail {
        font-weight: bold;
        color: var(--tertiary-color);
        @media only screen and (max-width: 600px) {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 32px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 100vmax;
        }
    }
    .order .order-header .summary .view-detail:hover {
        opacity: 0.5;
    }
    .order .order-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .order .order-items .order-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 18px;
        &:not(:last-child) {
            border-bottom: solid 1px #ddd;
        }
    }
    .order .order-items .order-item .image {
        display: block;
        object-fit: contain;
        width: 90px;
        height: 90px;
        border-radius: 8px;
    }
    .order .order-items .order-item .name .quantity {
        display: inline-flex;
        align-items: center;
        height: 20px;
        background: #eaedf2;
        border-radius: 100vmax;
        padding: 0 12px;
        font-weight: bold;
        color: #51637f;
        font-size: 90%;
    }
    .order .order-items .order-item .sku {
        color: #777;
        font-size: 90%;
    }
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;

    @media only screen and (max-width: 600px) {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }

    .product {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        box-shadow: var(--common-box-shadow);
        transition: 150ms;
        @media only screen and (max-width: 600px) {
            padding: 8px;
        }
    }
    .product:hover {
        box-shadow: var(--common-box-shadow-hover);
    }
    .product .image {
        display: block;
        margin-bottom: 10px;
        transition: 150ms;
        &:hover {
            opacity: 0.7;
        }
    }
    .product .image img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 4px;
    }
    .product .name {
        line-height: 1.4;
        font-weight: bold;
    }
    .product .review {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 2px;
    }
    .product .review .stars {
        display: flex;
        align-items: center;
        letter-spacing: -2px;
    }
    .product .review .stars i {
        font-size: 20px;
        @media only screen and (max-width: 600px) {
            font-size: 15px;
        }
    }
    .product .review .stars i.filled {
        color: rgb(235, 189, 22);
    }
    .product .review .stars i.empty {
        color: #bbb;
    }
    .product .review .quantity {
        padding-top: 3px;
        font-size: 12px;
    }
    .product .price {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
        font-size: 19px;
        color: var(--tertiary-color);
    }
    .product .price span {
        margin: 3px 3px 0 0;
        font-size: 70%;
    }
    .product .actions {
        display: flex;
        align-items: center;
        gap: 12px;
        @media only screen and (max-width: 600px) {
            width: 100%;
            gap: 6px;
        }
    }
    .product .actions .add-cart-button {
        padding-left: 28px;
        padding-right: 28px;
        @media only screen and (max-width: 600px) {
            flex: 1;
            padding-left: 8px;
            padding-right: 8px;
        }
    }
    .product .actions .add-wish-list-button.checked {
        background-color: pink;
        color: rgb(248, 91, 117);
    }

    /* Out of stock styles */
    .product.out-of-stock {
        opacity: 0.7;
    }

    .product.out-of-stock .image {
        position: relative;
    }

    .product.out-of-stock .image .out-of-stock-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: rgba(220, 53, 69, 0.9);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        z-index: 1;
    }

    .product .actions .add-cart-button.disabled,
    .product .actions .add-cart-button:disabled {
        background-color: #cccccc !important;
        color: #666666 !important;
        cursor: not-allowed !important;
        opacity: 0.6;
    }

    .product .actions .add-cart-button.disabled:hover,
    .product .actions .add-cart-button:disabled:hover {
        background-color: #cccccc !important;
        box-shadow: none !important;
        transform: none !important;
    }
}
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;

    .product {
        display: flex;
        align-items: center;
        gap: 32px;
        background: #fff;
        border-radius: 16px;
        padding: 16px 20px;
        box-shadow: var(--common-box-shadow);
    }
    .product .image {
        display: block;
        width: 130px;
        height: 130px;
    }
    .product .image img {
        display: block;
        object-fit: contain;
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }
    .product .detail {
        flex: 1;
        padding-right: 6px;
    }
    .product .detail .name {
        font-size: 15px;
    }
    .product .detail .sku {
        font-size: 12px;
        color: #666;
    }
    .product .detail .cart-properties {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 8px;
    }
    .product .detail .cart-properties .cart-remove {
        color: #8086a5;
        font-size: 12px;
        &:hover {
            text-decoration: underline;
        }
        @media only screen and (max-width: 600px) {
            line-height: 1.3;
        }
    }
    .product .detail .cart-properties .quantity {
        display: flex;
        align-items: center;
        height: 24px;
        background: #eaedf2;
        border-radius: 100vmax;
        padding: 0 12px;
        font-weight: bold;
        color: #51637f;
        font-size: 90%;
    }
    .product .detail .price {
        display: flex;
        align-items: flex-start;
        font-size: 19px;
        color: var(--tertiary-color);
    }
    .product .detail .price .mark {
        margin: 3px 3px 0 0;
        font-size: 70%;
    }

    &.simple {
        .product {
            gap: 24px;
            background: transparent;
            padding: 0;
            &:not(:last-child) {
                margin-bottom: 12px;
            }
        }
        .product .image {
            width: 100px;
            height: 100px;
        }
    }

    /* Out of stock styles */
    .product.out-of-stock {
        opacity: 0.6;

        .image {
            position: relative;

            .out-of-stock-badge {
                position: absolute;
                top: 8px;
                right: 8px;
                background: #ff4757;
                color: white;
                padding: 4px 8px;
                border-radius: 4px;
                font-size: 11px;
                font-weight: bold;
                text-transform: uppercase;
                z-index: 1;
            }
        }

        .detail .name,
        .detail .sku {
            color: #999;
        }

        .detail .cart-properties .quantity-editor.disabled {
            opacity: 0.5;
            pointer-events: none;

            .quantity-button,
            .quantity-input {
                cursor: not-allowed;
            }
        }
    }
}
.product-main {
    display: flex;
    gap: 64px;
    @media only screen and (max-width: 600px) {
        flex-direction: column;
        gap: 16px;
    }

    .image-preview {
        flex: 4;
        z-index: 500;

        .inner {
            position: sticky;
            top: calc(20px + var(--header-main-height));
        }
        .main-image {
            margin-bottom: 20px;
        }
        .main-image img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: contain;
            border-radius: 6px;
        }
        .main-image video {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: contain;
            background: #000;
            border-radius: 6px;
        }

        .images {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            @media only screen and (max-width: 600px) {
                gap: 12px;
            }
        }
        .images .image {
            width: 82px;
            height: 82px;
            object-fit: cover;
            border-radius: 6px;
            user-select: none;
        }
        .images .image:hover {
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
        }
    }

    .summary {
        flex: 6;

        .summary-header {
            margin-bottom: 32px;
        }
        .summary-header .name {
            line-height: 1.4;
            margin-bottom: 3px;
            font-size: 24px;
            color: var(--text-gray-color);
            @media only screen and (max-width: 600px) {
                line-height: 1.25;
            }
        }
        .summary-header .review {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .summary-header .review .stars {
            display: flex;
            align-items: center;
            letter-spacing: -1px;
        }
        .summary-header .review .stars i {
            color: rgb(235, 189, 22);
            font-size: 20px;
        }
        .summary-header .review .review-count {
            padding-top: 2px;
        }
        .summary-header .price {
            font-size: 16px;
            font-weight: bold;
        }

        .summary-text {
            margin-bottom: 32px;
            color: #555;
        }

        .detail {
            width: fit-content;
            min-width: 50%;
            max-width: 100%;
            margin-bottom: 32px;
        }
        .detail section {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 8px 4px;
        }
        .detail section:not(:last-child) {
            border-bottom: solid 1px rgba(0, 0, 0, 0.1);
        }
        .detail section .label {
            width: 100px;
            font-size: 90%;
            font-weight: bold;
        }
        .detail section .value {
            flex: 1;
        }
        .detail .stock-available {
            color: rgb(45, 164, 45);
        }
        .detail .stock-unavailable {
            color: rgb(235, 93, 57);
        }

        .cart-box {
            display: flex;
            align-items: center;
            background: #fff;
            border: solid 1px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 16px;
            @media only screen and (max-width: 600px) {
                position: sticky;
                bottom: 60px;
                padding: 8px;
            }
        }
        .cart-box .quantity {
            border-right: solid 1px rgba(0, 0, 0, 0.1);
            padding-right: 32px;
            @media only screen and (max-width: 600px) {
                padding-right: 16px;
            }
        }
        .cart-box .quantity .label {
            text-align: center;
            font-size: 90%;
        }
        .cart-box .quantity .quantity-input {
            @media only screen and (max-width: 600px) {
                width: 50px;
            }
        }
        .cart-box .cart-actions {
            display: flex;
            flex: 1;
            gap: 16px;
            margin: 0 32px;
            @media only screen and (max-width: 600px) {
                gap: 8px;
                margin: 0 8px;
            }
        }
        .cart-box .add-cart-button {
            flex: 1;
            height: 38px;
            font-size: 110%;
        }
        .cart-box .add-cart-button i {
            margin-right: 8px;
            font-size: 120%;
        }
        .cart-box .add-wish-list-button {
            width: 64px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: 100vmax;
            background: #fff;
            cursor: pointer;
            transition: all 0.2s ease;
            @media only screen and (max-width: 600px) {
                width: 42px;
            }
        }
        .cart-box .add-wish-list-button:hover {
            background: #f5f5f5;
            border-color: rgba(0, 0, 0, 0.3);
        }
        .cart-box .add-wish-list-button i {
            font-size: 18px;
            color: #666;
            transition: color 0.2s ease;
        }
        .cart-box .add-wish-list-button.checked {
            background: #ff4757;
            border-color: #ff4757;
        }
        .cart-box .add-wish-list-button.checked i {
            color: #fff;
        }
        .cart-box .add-wish-list-button.checked:hover {
            background: #ff3742;
            border-color: #ff3742;
        }
        .cart-box.unavailable {
            pointer-events: none;
            opacity: 0.7;
            filter: grayscale(1);
        }

        .product-description {
            margin-top: 32px;
        }
        .product-description :is(h2, h3, h4, h5) {
            color: var(--tertiary-color);
        }
    }
}
.product-scroll-view {
    overflow-y: auto;
    padding-bottom: 16px;

    &::-webkit-scrollbar {
        width: 8x;
        height: 8px;
    }
    &::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.5);
    }
    &::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 9999px;
        transition: 150ms;
    }
    &::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.2);
    }
    &::-webkit-scrollbar-corner {
        background: rgba(255, 255, 255, 0.2);
    }

    & > .inner {
        display: flex;
        width: max-content;
        gap: 32px;
        @media only screen and (max-width: 600px) {
            gap: 16px;
        }
    }
    .product {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 180px;
    }
    .product .image {
        display: block;
        transition: 150ms;
        &:hover {
            opacity: 0.7;
        }
    }
    .product .image img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 4px;
    }
    .product .name {
        line-height: 1.5;
        margin-bottom: 6px;
        font-weight: bold;
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        word-break: break-all;
    }
    .product .price {
        font-size: 90%;
        color: #888;
    }
    .product .add-cart-button {
        width: 100%;
        height: 38px;
        margin-top: 8px;
    }

    /* Out of stock styles */
    .product.out-of-stock {
        opacity: 0.7;
    }

    .product.out-of-stock .image {
        position: relative;
    }

    .product.out-of-stock .image .out-of-stock-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: rgba(220, 53, 69, 0.9);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        z-index: 1;
    }

    .product .add-cart-button.disabled,
    .product .add-cart-button:disabled {
        background-color: #cccccc !important;
        color: #666666 !important;
        cursor: not-allowed !important;
        opacity: 0.6;
    }

    .product .add-cart-button.disabled:hover,
    .product .add-cart-button:disabled:hover {
        background-color: #cccccc !important;
        box-shadow: none !important;
        transform: none !important;
    }
}
.quantity-editor {
    display: flex;
    align-items: stretch;

    .quantity-input {
        width: 80px;
        height: 36px;
        border: 0;
        font-size: 120%;
        font-weight: bold;
        text-align: center;
        -moz-appearance: textfield;
        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
    }
    .quantity-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 24px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
        font-size: 18px;
        color: #555;
        transition: 150ms;
    }
    .quantity-button:hover {
        background: var(--primary-color);
        color: #fff;
    }
}
.review-summary {
    display: flex;
    flex-direction: column;
    align-items: center;

    .average {
        margin-bottom: 20px;
    }
    .average .star-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .average .star-container .stars {
        display: flex;
        align-items: center;
        letter-spacing: -1px;
    }
    .average .star-container .stars i {
        color: rgb(235, 189, 22);
        font-size: 20px;
    }
    .average .star-container .review-count {
        padding-top: 2px;
    }
    .average .star-container .star-summary {
        padding-top: 3px;
    }
    .average .review-count {
        font-size: 90%;
        text-align: center;
    }

    .per-stars {
        width: 100%;
        padding: 0 20px;
    }
    .per-stars .per-star-section {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 0;
    }
    .per-stars .per-star-section .name {
        width: 40px;
    }
    .per-stars .per-star-section .bar {
        flex: 1;
        height: 8px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 100vmax;
        overflow: hidden;
    }
    .per-stars .per-star-section .bar::before {
        content: "";
        display: block;
        width: var(--filled-width, 0);
        height: 100%;
        background: var(--primary-color);
    }
    .per-stars .per-star-section .bar .filled .per-stars .per-star-section .quantity {
        width: 60px;
    }
}
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--common-box-shadow);

    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    .review-header .date {
        font-size: 12px;
        color: #666;
    }
    .review-header .stars {
        display: flex;
        align-items: center;
        letter-spacing: -1px;
    }
    .review-header .stars i {
        color: rgb(197, 196, 188);
        font-size: 20px;
    }
    .review-header .stars i.filled {
        color: rgb(235, 189, 22);
    }

    .review-body {
        white-space: pre-line;
        word-break: break-all;
    }

    .review-footer {
        display: flex;
        justify-content: space-between;
        margin-top: 8px;
    }
    .review-footer .user {
        display: flex;
        align-items: center;
    }
    .review-footer .user .user-image {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    .review-footer .review-reactions {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .review-footer .review-reactions .reaction {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .review-footer .review-reactions .reaction i {
        font-size: 120%;
        color: var(--tertiary-color);
        transition: 150ms;
    }
    .review-footer .review-reactions .reaction i:hover {
        opacity: 0.5;
    }
    .review-footer .review-reactions .reaction.reacted i {
        color: var(--primary-color);
    }
}
.review-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.search-condition-panel {
    .inner {
        display: flex;
        flex-direction: column;
        gap: 24px;

        @media only screen and (max-width: 600px) {
            gap: 12px;
        }
    }
    :is(input, select) {
        background: #fff;
        border: solid 1px rgba(0, 0, 0, 0.2);
    }
    .condition-section .label {
        font-weight: bold;
        color: var(--text-gray-color);
    }
    .value :is(input, select) {
        width: 100%;
    }

    .range {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .range input {
        width: 35%;
    }

    .checkbox-list {
        display: flex;
        flex-direction: column;
    }
    .checkbox-list .checkbox {
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: bold;
        transition: 100ms;
        user-select: none;
    }
    .checkbox-list .checkbox:hover {
        background: rgba(255, 255, 255, 0.7);
    }
    .checkbox-list .checkbox .check {
        width: 16px;
        height: 16px;
        border: solid 1px rgba(0, 0, 0, 0.2);
        border-radius: 2px;
        font-size: 13px;
        color: transparent;
    }
    .checkbox-list .checkbox.check .check {
        background-color: var(--text-gray-color);
        border-color: var(--text-gray-color);
        color: #fff;
    }
    .checkbox-list .checkbox .quantity {
        font-size: 10px;
    }

    .action {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    .action .button {
        width: 90%;
        height: 38px;
        background: var(--text-gray-color);
        color: #fff;
    }
}
.pagination {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-btn.prev,
.pagination-btn.next {
    font-weight: 500;
    min-width: auto;
    padding: 0.5rem 1rem;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pagination {
        margin: 1.5rem 0;
    }

    .pagination-info {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .pagination-controls {
        gap: 0.25rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: auto;
        height: 2rem;
        border-radius: 6px;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        font-weight: 500;
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .pagination-btn.prev:disabled,
    .pagination-btn.next:disabled {
        background: #e9ecef;
        color: #6c757d;
        border-color: #dee2e6;
        opacity: 0.6;
    }

    /* Hide most page numbers on mobile - show only current and adjacent */
    .pagination-pages {
        gap: 0.15rem;
        flex: 1;
        justify-content: center;
        overflow: hidden;
    }

    .pagination-pages .pagination-btn:not(.active) {
        display: none;
    }

    /* Show current page and immediate neighbors */
    .pagination-pages .pagination-btn.active,
    .pagination-pages .pagination-btn.active + .pagination-btn,
    .pagination-pages .pagination-btn:has(+ .pagination-btn.active) {
        display: flex;
    }

    /* Hide ellipsis on mobile */
    .pagination-ellipsis {
        display: none;
    }

    /* Ensure current page is highlighted */
    .pagination-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        font-weight: 600;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .pagination-controls {
        gap: 0.1rem;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .pagination-btn.prev i,
    .pagination-btn.next i {
        font-size: 0.7rem;
    }

    /* On very small screens, show only current page */
    .pagination-pages .pagination-btn:not(.active) {
        display: none;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .pagination-btn:hover:not(:disabled) {
        background: #fff;
        border-color: #ddd;
    }

    .pagination-btn:active:not(:disabled) {
        background: #f5f5f5;
        border-color: #999;
    }
}
.stripe-payment-form {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;

    .payment-method-selector h3 {
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

    .payment-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .payment-option {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.2s;
        user-select: none;
    }

    .payment-option:hover {
        background-color: #f5f5f5;
    }

    .payment-option input[type="radio"] {
        margin: 0;
    }

    .saved-cards-section {
        margin-top: 20px;
    }

    .saved-cards-section h4 {
        margin: 0 0 12px 0;
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }

    .saved-cards-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .saved-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        cursor: pointer;
        transition: border-color 0.2s, background-color 0.2s;
    }

    .saved-card:hover {
        border-color: #635bff;
        background-color: #f8f9ff;
    }

    .saved-card input[type="radio"] {
        margin: 0;
    }

    .card-info {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .card-brand {
        font-weight: 600;
        font-size: 12px;
        color: #666;
        background: #f0f0f0;
        padding: 2px 6px;
        border-radius: 3px;
    }

    .card-number {
        font-family: monospace;
        color: #333;
    }

    .card-expiry {
        font-size: 14px;
        color: #666;
    }

    .delete-card {
        background: none;
        border: none;
        color: #999;
        font-size: 18px;
        cursor: pointer;
        padding: 4px;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s, color 0.2s;
    }

    .delete-card:hover {
        background-color: #ff4444;
        color: white;
    }

    .new-card-section {
        margin-top: 20px;
    }

    .save-card-option {
        margin-bottom: 16px;
    }

    .save-card-option label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 14px;
        color: #666;
    }

    .save-card-option input[type="checkbox"] {
        margin: 0;
    }

    .payment-element-container {
        min-height: 40px;
        border-radius: 4px;
    }

    /* Stripe Elements styling */
    .payment-element-container .StripeElement {
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 12px;
        background: white;
    }

    .payment-element-container .StripeElement--focus {
        border-color: #635bff;
        box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.1);
    }

    .payment-element-container .StripeElement--invalid {
        border-color: #ff4444;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .stripe-payment-form {
            padding: 16px;
        }

        .card-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }

        .saved-card {
            padding: 16px 12px;
        }
    }
}
.address-form {
    .name-pair {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .name-pair input {
        width: 120px;
    }
}
.address-create-dialog {
    width: 100%;
    max-width: 500px;
    min-height: 120px;
}
.error-dialog {
    .content {
        white-space: pre-line;
    }
}
.address-delete-dialog {
    width: 100%;
    max-width: 500px;
}
.address-create-dialog {
    width: 100%;
    max-width: 500px;
    min-height: 120px;
}
.address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;

    .address-list-element {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 24px;
        background: rgba(0, 0, 0, 0.05);
        border: solid 1px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        cursor: default;

        .check {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 8px;
        }
        .check input {
            width: 16px;
            height: 16px;
        }
        .summary {
            flex: 1;
        }
        .summary .name {
            font-weight: bold;
        }
        .summary .is-default {
            color: rgb(51, 125, 234);
            font-size: 90%;
            font-weight: bold;
        }
        .actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .actions .button {
            height: 24px;
        }
    }
}
#page-addresses {
    .no-addresses {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 64px 10px;
    }
    .actions-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }
}
.cart-added-dialog {
    width: 100%;
    max-width: 650px;
    min-height: 120px;

    .product {
        display: flex;
        gap: 16px;
        border: solid 1px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        padding: 12px;
    }
    .product .product-image {
        width: 80px;
        height: 80px;
    }
    .product .product-image img {
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    .product .product-info {
        flex: 1;
    }
    .product .product-info .name {
        line-height: 1.4;
        font-size: 18px;
    }
    .product .product-info .name .quantity {
        font-size: 14px;
        color: #777;
    }
    .product .product-info .sku {
        font-size: 90%;
        color: #777;
    }
    .product .product-info .price {
        font-weight: bold;
    }
}
#page-brand main {
    .brand-header {
        display: flex;
        align-items: center;
        max-width: var(--site-width);
        width: 100%;
        min-height: 360px;
        background: #fff;
        border-radius: 32px;
        margin: auto;
        margin-bottom: 42px;
        box-shadow: var(--common-box-shadow);
        overflow: hidden;

        @media only screen and (max-width: 600px) {
            flex-direction: column;
            min-height: auto;
            border-radius: 16px;
            margin-bottom: 24px;
        }
    }
    .brand-header .brand-image {
        position: relative;
        flex: 6;
        align-self: stretch;

        @media only screen and (max-width: 600px) {
            flex: none;
            width: 100%;
            height: 200px;
        }
    }
    .brand-header .brand-image img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .brand-header .summary {
        flex: 4;
        padding: 20px 46px;
        font-size: 16px;

        @media only screen and (max-width: 600px) {
            flex: none;
            width: 100%;
            padding: 16px 20px;
            text-align: center;
        }
    }
    .brand-header .summary .brand-name {
        margin: 0;
        font-size: 38px;
        color: var(--tertiary-color);

        @media only screen and (max-width: 600px) {
            font-size: 28px;
            margin-bottom: 8px;
        }
    }
    .brand-header .summary p {
        @media only screen and (max-width: 600px) {
            font-size: 14px;
            line-height: 1.4;
            margin: 0;
        }
    }

    .main-page-content {
        display: flex;
        gap: 32px;

        @media only screen and (max-width: 600px) {
            flex-direction: column;
            gap: 16px;
        }
    }
    .main-page-content .search-condition-panel {
        width: 260px;

        @media only screen and (max-width: 600px) {
            width: 100%;
            order: 2;
        }
    }
    .product-grid {
        flex: 1;
        align-self: flex-start;

        @media only screen and (max-width: 600px) {
            order: 1;
        }
    }

    /* No products message styling */
    .product-grid .no-products-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 80px 20px;
        background: #fff;
        border-radius: 16px;
        box-shadow: var(--common-box-shadow);
        color: var(--text-gray-color);

        @media only screen and (max-width: 600px) {
            padding: 60px 20px;
            border-radius: 12px;
        }
    }

    .product-grid .no-products-message .icon {
        margin-bottom: 24px;
        font-size: 64px;
        color: var(--text-light-gray-color);
        opacity: 0.6;

        @media only screen and (max-width: 600px) {
            font-size: 48px;
            margin-bottom: 16px;
        }
    }

    .product-grid .no-products-message h3 {
        margin: 0 0 16px 0;
        font-size: 24px;
        font-weight: 600;
        color: var(--text-color);

        @media only screen and (max-width: 600px) {
            font-size: 20px;
            margin-bottom: 12px;
        }
    }

    .product-grid .no-products-message p {
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        max-width: 400px;

        @media only screen and (max-width: 600px) {
            font-size: 14px;
            line-height: 1.4;
        }
    }

    /* Mobile-specific search panel styling */
    @media only screen and (max-width: 600px) {
        .search-condition-panel {
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            box-shadow: var(--common-box-shadow);
            margin-top: 16px;
        }

        .search-condition-panel .inner {
            gap: 16px;
        }

        .search-condition-panel .condition-section {
            padding: 12px 0;
        }

        .search-condition-panel .condition-section:not(:last-child) {
            border-bottom: solid 1px rgba(0, 0, 0, 0.1);
        }

        .search-condition-panel .condition-section .label {
            margin-bottom: 8px;
            font-size: 14px;
        }

        .search-condition-panel .action {
            margin-top: 16px;
        }

        .search-condition-panel .action .button {
            width: 100%;
            height: 42px;
            font-size: 16px;
        }

        /* Touch feedback for mobile */
        .search-condition-panel .checkbox.touched {
            background: rgba(0, 0, 0, 0.1);
            transform: scale(0.98);
        }

        /* Improve touch targets */
        .search-condition-panel input,
        .search-condition-panel select {
            min-height: 44px;
            font-size: 16px; /* Prevents zoom on iOS */
        }

        /* Better spacing for mobile form elements */
        .search-condition-panel .range {
            flex-direction: column;
            gap: 8px;
            align-items: stretch;
        }

        .search-condition-panel .range input {
            width: 100%;
        }

        .search-condition-panel .range span {
            text-align: center;
            font-weight: bold;
            color: var(--text-gray-color);
        }
    }
}
#page-cart main {
    .panel-no-items {
        .top-message {
            padding: 60px 0;
            text-align: center;
        }
        .empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
        }
        .empty .cart-icon {
            font-size: 120px;
            color: rgba(0, 0, 0, 0.2);
        }
        .empty .message {
            font-size: 120%;
        }
    }

    .panel-cart .top-message {
        margin-bottom: 10px;
        font-size: 120%;
    }

    .subtotal {
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: solid 1px #bbb;
        margin-bottom: 8px;
        padding: 4px 8px;
        font-size: 120%;
    }
    .subtotal.small {
        font-size: 95%;
    }
    .subtotal strong {
        color: var(--warning-color);
        font-size: 125%;
    }
    .subtotal.small strong {
        color: var(--text-gray-color);
    }

    .notice {
        font-size: 80%;
    }

    .main-page-content {
        display: flex;
        gap: 42px;
        @media only screen and (max-width: 600px) {
            flex-direction: column;
        }
    }

    .cart-items {
        flex: 1;
    }
    .cart-items .subtotal-container {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        padding-right: 12px;
    }

    .cart-summary {
        align-self: flex-start;
        width: 320px;
        @media only screen and (max-width: 600px) {
            position: sticky;
            bottom: 60px;
            width: 100%;
            padding: 16px;
            box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
        }
    }
    .cart-summary .proceed-button {
        width: 100%;
        margin-top: 10px;
    }
    .cart-summary .subtotal {
        border-color: #ddd;
    }
}
.pagination {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-btn.prev,
.pagination-btn.next {
    font-weight: 500;
    min-width: auto;
    padding: 0.5rem 1rem;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #666;
}

/* Mobile responsiveness */

@media (max-width: 768px) {
    .pagination {
        margin: 1.5rem 0;
    }

    .pagination-info {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .pagination-controls {
        gap: 0.25rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: auto;
        height: 2rem;
        border-radius: 6px;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        font-weight: 500;
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .pagination-btn.prev:disabled,
    .pagination-btn.next:disabled {
        background: #e9ecef;
        color: #6c757d;
        border-color: #dee2e6;
        opacity: 0.6;
    }

    /* Hide most page numbers on mobile - show only current and adjacent */
    .pagination-pages {
        gap: 0.15rem;
        flex: 1;
        justify-content: center;
        overflow: hidden;
    }

    .pagination-pages .pagination-btn:not(.active) {
        display: none;
    }

    /* Show current page and immediate neighbors */
    .pagination-pages .pagination-btn.active,
    .pagination-pages .pagination-btn.active + .pagination-btn,
    .pagination-pages .pagination-btn:has(+ .pagination-btn.active) {
        display: flex;
    }

    /* Hide ellipsis on mobile */
    .pagination-ellipsis {
        display: none;
    }

    /* Ensure current page is highlighted */
    .pagination-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        font-weight: 600;
    }
}

/* Extra small screens */

@media (max-width: 480px) {
    .pagination-controls {
        gap: 0.1rem;
    }

    .pagination-btn.prev,
    .pagination-btn.next {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .pagination-btn.prev i,
    .pagination-btn.next i {
        font-size: 0.7rem;
    }

    /* On very small screens, show only current page */
    .pagination-pages .pagination-btn:not(.active) {
        display: none;
    }
}

/* Touch device improvements */

@media (hover: none) {
    .pagination-btn:hover:not(:disabled) {
        background: #fff;
        border-color: #ddd;
    }

    .pagination-btn:active:not(:disabled) {
        background: #f5f5f5;
        border-color: #999;
    }
}

#page-category main {
    .category-header {
        display: flex;
        align-items: center;
        max-width: var(--site-width);
        width: 100%;
        min-height: 360px;
        background: #fff;
        border-radius: 32px;
        margin: auto;
        margin-bottom: 42px;
        box-shadow: var(--common-box-shadow);
        overflow: hidden;

        @media only screen and (max-width: 600px) {
            flex-direction: column;
            min-height: auto;
            border-radius: 16px;
            margin-bottom: 24px;
        }
    }
    .category-header .category-image {
        position: relative;
        flex: 6;
        align-self: stretch;

        @media only screen and (max-width: 600px) {
            flex: none;
            width: 100%;
            height: 200px;
        }
    }
    .category-header .category-image img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .category-header .summary {
        flex: 4;
        padding: 20px 46px;
        font-size: 16px;

        @media only screen and (max-width: 600px) {
            flex: none;
            width: 100%;
            padding: 16px 20px;
            text-align: center;
        }
    }
    .category-header .summary .category-name {
        margin: 0;
        font-size: 38px;
        color: var(--tertiary-color);

        @media only screen and (max-width: 600px) {
            font-size: 28px;
            margin-bottom: 8px;
        }
    }
    .category-header .summary p {
        @media only screen and (max-width: 600px) {
            font-size: 14px;
            line-height: 1.4;
            margin: 0;
        }
    }

    .main-page-content {
        display: flex;
        gap: 32px;

        @media only screen and (max-width: 600px) {
            flex-direction: column;
            gap: 16px;
        }
    }
    .main-page-content .search-condition-panel {
        width: 260px;

        @media only screen and (max-width: 600px) {
            width: 100%;
            order: 2;
        }
    }
    .product-grid {
        flex: 1;
        align-self: flex-start;

        @media only screen and (max-width: 600px) {
            order: 1;
        }
    }

    /* No products message styling */
    .product-grid .no-products-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 80px 20px;
        background: #fff;
        border-radius: 16px;
        box-shadow: var(--common-box-shadow);
        color: var(--text-gray-color);

        @media only screen and (max-width: 600px) {
            padding: 60px 20px;
            border-radius: 12px;
        }
    }

    .product-grid .no-products-message .icon {
        margin-bottom: 24px;
        font-size: 64px;
        color: var(--text-light-gray-color);
        opacity: 0.6;

        @media only screen and (max-width: 600px) {
            font-size: 48px;
            margin-bottom: 16px;
        }
    }

    .product-grid .no-products-message h3 {
        margin: 0 0 16px 0;
        font-size: 24px;
        font-weight: 600;
        color: var(--text-color);

        @media only screen and (max-width: 600px) {
            font-size: 20px;
            margin-bottom: 12px;
        }
    }

    .product-grid .no-products-message p {
        margin: 0;
        font-size: 16px;
        line-height: 1.5;
        max-width: 400px;

        @media only screen and (max-width: 600px) {
            font-size: 14px;
            line-height: 1.4;
        }
    }

    /* Mobile-specific search panel styling */
    @media only screen and (max-width: 600px) {
        .search-condition-panel {
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            box-shadow: var(--common-box-shadow);
            margin-top: 16px;
        }

        .search-condition-panel .inner {
            gap: 16px;
        }

        .search-condition-panel .condition-section {
            padding: 12px 0;
        }

        .search-condition-panel .condition-section:not(:last-child) {
            border-bottom: solid 1px rgba(0, 0, 0, 0.1);
        }

        .search-condition-panel .condition-section .label {
            margin-bottom: 8px;
            font-size: 14px;
        }

        .search-condition-panel .checkbox-list .checkbox {
            padding: 8px 12px;
            font-size: 14px;
        }

        .search-condition-panel .action {
            margin-top: 16px;
        }

        .search-condition-panel .action .button {
            width: 100%;
            height: 42px;
            font-size: 16px;
        }

        /* Touch feedback for mobile */
        .search-condition-panel .checkbox.touched {
            background: rgba(0, 0, 0, 0.1);
            transform: scale(0.98);
        }

        /* Improve touch targets */
        .search-condition-panel input,
        .search-condition-panel select {
            min-height: 44px;
            font-size: 16px; /* Prevents zoom on iOS */
        }

        /* Better spacing for mobile form elements */
        .search-condition-panel .range {
            flex-direction: column;
            gap: 8px;
            align-items: stretch;
        }

        .search-condition-panel .range input {
            width: 100%;
        }

        .search-condition-panel .range span {
            text-align: center;
            font-weight: bold;
            color: var(--text-gray-color);
        }
    }
}
#page-checkout {
    background: #f7f7f7;
}

#page-checkout #container {
    display: flex;
    gap: 32px;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    margin: 64px auto;
    padding: 24px;
    box-shadow: 0 0 64px rgba(0, 0, 0, 0.05);
    @media only screen and (max-width: 600px) {
        flex-direction: column;
        margin-left: 10px;
        margin-right: 10px;
    }

    .detail-panel {
        flex: 1;
    }
    .detail-panel .panel-section:not(:last-child) {
        margin-bottom: 32px;
    }
    .detail-panel .panel-section .section-header {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        font-size: 110%;
        font-weight: bold;
    }
    .detail-panel .panel-section .section-header::after {
        content: "";
        flex: 1;
        display: block;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin-left: 12px;
    }

    .detail-panel .select {
        width: 100%;
        height: 42px;
        border: solid 1px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
    }

    .action-panel {
        width: 250px;
        border-left: solid 1px rgba(0, 0, 0, 0.1);
        padding-left: 32px;
        @media only screen and (max-width: 600px) {
            width: 100%;
            border-left: none;
            padding-left: 0;
        }
    }
    .action-panel .button {
        width: 100%;
        height: 36px;
    }
    .action-panel .price-line {
        padding: 4px 0;
    }
    .action-panel .price-line .label {
        display: flex;
        align-items: center;
        font-size: 13px;
        font-weight: bold;
    }
    .action-panel .price-line .label::after {
        content: "";
        flex: 1;
        display: block;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin-left: 12px;
    }
    .action-panel .price-line .value {
        font-size: 22px;
    }
    .action-panel .price-line.total .value {
        font-size: 28px;
    }
    .action-panel .actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
}
#page-contact {
    .guest-notice {
        font-size: 12px;
        font-weight: bold;
        color: var(--warning-color);
    }
}
#page-dashboard {
    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 32px;
    }
    .menu .button {
        max-width: 300px;
        width: 100%;
    }
}
#page-error-common main {
    padding-top: 100px;
}
.forgot-password-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forgot-password-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.forgot-password-description {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-input:invalid {
    border-color: #dc3545;
}

.submit-button {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.back-to-login {
    text-align: center;
    margin-top: 1.5rem;
}

.back-to-login a {
    color: #007bff;
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    .forgot-password-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .forgot-password-title {
        font-size: 1.25rem;
    }
}
#page-front main {
    background: linear-gradient(#e3e6e6 40vh, transparent 140vh);
    padding-top: 0 !important;

    .top-featured {
        background: url("/assets/img/textures/wallpaper-secondary-color.png") var(--secondary-color);
        padding: 20px 0;

        .featured-categories-container {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 12px;
            padding: 16px 80px 30px;
            margin-bottom: calc(30vh - 50px);
            @media only screen and (max-width: 600px) {
                padding: 10px;
            }
        }
        .featured-categories-container .featured-categories-label {
            margin-bottom: 8px;
            font-size: 160%;
            font-weight: bold;
            color: var(--tertiary-color);
            @media only screen and (max-width: 600px) {
                padding: 8px 12px;
            }
        }

        .featured-categories {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            @media only screen and (max-width: 600px) {
                grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
            }
        }
        .featured-categories .category {
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1.3;
            border-radius: 12px;
            padding: 16px 0;
            text-align: center;
            transition: 150ms;
            @media only screen and (max-width: 600px) {
                padding: 8px 0;
            }
        }
        .featured-categories .category .image {
            display: block;
            margin-bottom: 6px;
            transition: 150ms;
        }
        .featured-categories .category .image img {
            display: block;
            width: 64px;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
        }
        .featured-categories .category .name {
            font-size: 15px;
            font-weight: bold;
            color: var(--tertiary-color);
            @media only screen and (max-width: 600px) {
                font-size: 13px;
            }
        }
        .featured-categories .category:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        .featured-categories .category:hover .image {
            scale: 1.2;
        }
    }

    .top-featured-bg2 {
        height: 60px;
        background: url("/assets/img/textures/wallpaper-primary-color.png") var(--primary-color);
    }

    .columns {
        display: flex;
        gap: 32px;
        margin-top: -30vh;
        @media only screen and (max-width: 600px) {
            flex-direction: column;
        }

        .column {
            flex: 1;
            background: #fff;
            border-radius: 12px;
            box-shadow: var(--common-box-shadow);
        }
        .column .column-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: solid 1px rgba(0, 0, 0, 0.15);
            padding: 14px 20px;
        }
        .column .column-header .title {
            font-size: 20px;
            font-weight: bold;
            color: var(--text-gray-color);
        }
        .column .column-header a {
            font-size: 12px;
            font-weight: bold;
        }
        .column .column-products {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        .column .column-products .product {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px;
            &:not(:nth-child(2n)) {
                border-right: solid 1px rgba(0, 0, 0, 0.08);
            }
            &:not(:nth-last-child(-n + 2)) {
                border-bottom: solid 1px rgba(0, 0, 0, 0.08);
            }
        }
        .column .column-products .product .image {
            display: block;
            width: 100%;
            padding: 6px;
            transition: 150ms;
            &:hover {
                opacity: 0.7;
            }
        }
        .column .column-products .product .image img {
            width: 100%;
            border-radius: 8px;
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }
        .column .column-products .product .name {
            line-height: 1.5;
            font-weight: bold;
            overflow: hidden;
            display: -webkit-box;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
        }
        .column .column-products .product .review {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .column .column-products .product .review .stars {
            display: flex;
            align-items: center;
            letter-spacing: -2px;
        }
        .column .column-products .product .review .stars i {
            font-size: 20px;
        }
        .column .column-products .product .review .stars i.filled {
            color: rgb(235, 189, 22);
        }
        .column .column-products .product .review .stars i.empty {
            color: #bbb;
        }
        .column .column-products .product .review .quantity {
            padding-top: 3px;
        }
        .column .column-products .product .price {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
            font-size: 17px;
            font-weight: bold;
            color: var(--warning-color);
        }
    }
}
#page-order-complete {
    .main-message {
        margin-top: 100px;
        font-size: 110%;
        font-weight: bold;
        text-align: center;
    }
}
#page-order-detail {
    .page-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .page-title span {
        display: inline-block;
        font-size: 50%;
        color: #888;
    }

    .sections {
        display: flex;
        gap: 32px;
        margin-bottom: 32px;
        @media only screen and (max-width: 600px) {
            flex-direction: column;
            gap: 20px;
            margin-bottom: 20px;
        }
    }
    .sections .column {
        flex: 1;
    }

    .section-title {
        display: flex;
        align-items: center;
        font-size: 130%;
        font-weight: bold;
        color: var(--text-gray-color);
        &:not(:last-child) {
            margin-top: 12px;
        }
    }
    .section-title::after {
        flex: 1;
        display: block;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin-left: 12px;
        content: "";
    }
    .shipping-destination {
        margin-bottom: 10px;
    }

    .order-items {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 12px;
    }
    .order-items .order-item {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
        &:not(:last-child) {
            border-bottom: solid 1px #ddd;
        }
    }
    .order-items .order-item .image {
        display: block;
        object-fit: contain;
        width: 90px;
        height: 90px;
        border-radius: 8px;
    }
    .order-items .order-item .name {
        margin-bottom: 4px;
    }
    .order-items .order-item .name .quantity {
        display: inline-flex;
        align-items: center;
        height: 20px;
        background: #eaedf2;
        border-radius: 100vmax;
        padding: 0 12px;
        font-weight: bold;
        color: #51637f;
        font-size: 90%;
    }
    .order-items .order-item .info {
        line-height: 1.4;
        color: #777;
        font-size: 90%;
    }

    .order-summary section {
        display: flex;
        gap: 16px;
        padding: 2px 0;
    }
    .order-summary section.bold {
        font-weight: bold;
    }
    .order-summary section .label {
        min-width: 120px;
    }
}
#page-product-search main {
    .main-page-content {
        display: flex;
        gap: 32px;

        @media only screen and (max-width: 600px) {
            flex-direction: column-reverse;
            gap: 16px;
        }
    }
    .main-page-content .search-condition-panel {
        width: 260px;
        .inner {
            position: sticky;
            top: calc(20px + var(--header-main-height));
        }
        @media only screen and (max-width: 600px) {
            width: 100%;
            margin-bottom: 12px;
        }
    }
    .product-grid {
        flex: 1;
    }
}
#page-product main {
    .product-main {
        margin-bottom: 64px;
    }

    .review-container {
        display: flex;
        gap: 40px;
        @media only screen and (max-width: 600px) {
            flex-direction: column;
            gap: 20px;
        }
    }
    .review-container .review-summary-container {
        position: sticky;
        top: 20px;
        width: 300px;
        @media only screen and (max-width: 600px) {
            position: static;
            width: 100%;
        }
    }
    .review-container .reviews-container {
        flex: 1;
    }

    .review-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 12px;
    }

    .no-review-message {
        padding: 40px 0;
        text-align: center;
    }

    .shipping-info {
        margin-bottom: 12px;
        padding: 8px 12px;
        border-radius: 6px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        text-align: center;
    }

    .shipping-label {
        font-size: 14px;
        font-weight: 600;
        color: #495057;
    }

    .shipping-label.free {
        color: #28a745;
        background: #d4edda;
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid #c3e6cb;
    }
}
.review-create-dialog {
    width: 100%;
    max-width: 500px;
    min-height: 120px;

    .star-container {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-bottom: 10px;
    }
    .star-container .star {
        font-size: 22px;
        color: #aaa;
    }
    .star-container .star.active {
        color: rgb(251, 213, 25);
    }

    .body-textarea {
        width: 100%;
        height: 350px;
        padding: 8px;
    }
}
.reset-password-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reset-password-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.reset-password-description {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

.reset-password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-input:invalid {
    border-color: #dc3545;
}

.form-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.password-requirements {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.submit-button {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.message {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.back-to-login {
    text-align: center;
    margin-top: 1.5rem;
}

.back-to-login a {
    color: #007bff;
    text-decoration: none;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.security-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #495057;
}

.security-notice h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.security-notice ul {
    margin: 0;
    padding-left: 1.25rem;
}

.security-notice li {
    margin-bottom: 0.25rem;
}

/* Responsive design */
@media (max-width: 480px) {
    .reset-password-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .reset-password-title {
        font-size: 1.25rem;
    }
}
#page-sign-in {
    main {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 10px 50px;
    }

    .sign-in-container {
        max-width: 600px;
        width: 100%;
        background: #fff;
        border-radius: 24px;
        margin: 50px auto 0;
        padding: 32px 32px;
        box-shadow: var(--common-box-shadow);
    }

    .sign-in-title {
        text-align: center;
        margin-bottom: 2rem;
        color: #333;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: #555;
        font-weight: 500;
    }

    .form-input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

    .submit-button {
        width: 50%;
        height: 42px;
        margin: auto;
    }

    .forgot-password-link {
        display: block;
        text-align: center;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .forgot-password-link:hover {
        text-decoration: underline;
    }

    .error-message {
        display: none;
        padding: 0.75rem;
        margin-bottom: 1rem;
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
        font-size: 0.875rem;
    }

    .success-message {
        display: none;
        padding: 0.75rem;
        margin-bottom: 1rem;
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
        font-size: 0.875rem;
    }

    .sign-up-promotion {
        margin-top: 2rem;
        padding: 1.5rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 8px;
        text-align: center;
        border: 1px solid #dee2e6;
    }

    .promotion-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.5rem;
    }

    .promotion-description {
        color: #666;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .sign-up-link-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50%;
        height: 42px;
        background: var(--secondary-color);
        margin: auto;
        color: white;
        text-decoration: none;
        border-radius: 100vmax;
        transition: background-color 0.3s ease;
    }

    @media (max-width: 480px) {
        .sign-in-container {
            margin: 1rem;
            padding: 1.5rem;
        }

        .sign-up-promotion {
            padding: 1rem;
        }
    }
}
#page-sign-up {
    .sign-up-container {
        max-width: 600px;
        width: 100%;
        background: #fff;
        border-radius: 24px;
        margin: 50px auto 0;
        padding: 32px 32px;
        box-shadow: var(--common-box-shadow);
    }

    .sign-up-title {
        text-align: center;
        margin-bottom: 2rem;
        color: #333;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: #555;
        font-weight: 500;
    }

    .form-input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

    .submit-button {
        width: 100%;
    }

    .error-message {
        display: none;
        padding: 0.75rem;
        margin-bottom: 1rem;
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
        font-size: 0.875rem;
    }

    .success-message {
        display: none;
        padding: 0.75rem;
        margin-bottom: 1rem;
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
        font-size: 0.875rem;
    }

    .sign-in-link {
        text-align: center;
        margin-top: 1.5rem;
        color: #666;
    }

    .sign-in-link a {
        color: #007bff;
        text-decoration: none;
    }

    .sign-in-link a:hover {
        text-decoration: underline;
    }

    .password-requirements {
        font-size: 0.75rem;
        color: #666;
        margin-top: 0.25rem;
    }

    @media (max-width: 480px) {
        .sign-up-container {
            margin: 1rem;
            padding: 1.5rem;
        }
    }
}
#page-addresses {
    .no-addresses {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 64px 10px;
    }
}
#page-verify-sign-up {
    .verify-container {
        max-width: 500px;
        margin: 3rem auto;
        padding: 2rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .verify-title {
        margin-bottom: 2rem;
        color: #333;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .loading-message {
        display: block;
        padding: 1.5rem;
        color: #666;
        font-size: 1rem;
    }

    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 0.5rem;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }

    .success-message {
        display: none;
        padding: 1.5rem;
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .error-message {
        display: none;
        padding: 1.5rem;
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .sign-in-button {
        display: none;
        padding: 0.75rem 2rem;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s ease;
        text-decoration: none;
    }

    .sign-in-button:hover {
        background-color: #0056b3;
    }

    .verification-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .success-icon {
        color: #28a745;
    }

    .error-icon {
        color: #dc3545;
    }

    .loading-icon {
        color: #007bff;
    }

    @media (max-width: 480px) {
        .verify-container {
            margin: 1rem;
            padding: 1.5rem;
        }
    }
}
