.header {
    border-bottom: rgba(0, 0, 0, 0.06) 1px solid !important;
}

.offcanvas__logo a {
    color: #fff;
}

.breadcrumb-area {
    background: rgba(247, 247, 247, 0.98);
    padding: 10px 0;
}

.breadcrumb-area a {
    font-size: 13px;
    font-weight: 400 !important;
    color: #999;
}

.breadcrumb-area a:hover {
    color: #000 !important;
}

.breadcrumb__menu ul li:not(:first-child) span {
    font-size: 13px;
    font-weight: 400 !important;
    color: #000;
}

.breadcrumb__menu ul li:not(:last-child):after {
    width: 2px;
    height: 2px;
    background: #999;
}

.product__details-more-tab .nav-tabs {
    display: flex;
    flex-direction: row !important;
}

.product__details-more-tab-content .tab-content .tab-pane {
    text-align: left;
}

.product__details-more-tab .nav-tabs button {
    width: 33.33333%;
    margin: 0;
}

.comments-area {
    background-color: #fffaf8;
    padding: 25px 50px;
    border: 1px #f3efed solid;
}

.comments-area .comments-header {
    color: #d2061d;
}

.user-rating i {
    color: #d2061d;
}

.appraise-list a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #fff;
    border: 1px #efefef solid;
    min-width: 88px;
    text-align: center;
}

.appraise-list a.active {
    color: #d2061d;
    border: 1px #d2061d solid;
}

.checkout-area {
    margin: 1em 0 0;
    padding: 1em;
}

.checkout-area .accordion-button {
    text-align: center !important;
    background-color: #fff;
    flex-direction: column;
}

.checkout-area .accordion-button strong {
    width: 100%;
    font-size: 18px;
    color: #111;
}

.checkout-area .accordion-button span {
    width: 100%;
    font-weight: 400;
    font-size: 18px;
    color: #111;
}

.accordion-button::after {
    margin-left: inherit;
}

.checkout-area ul.checkout-step span {
    font-size: 15px;
}

.checkout-area ul.checkout-step {
    text-align: center;
    margin: 0 0 3rem;
}

.checkout-area ul.checkout-step li.step {
    display: inline-block;
    vertical-align: top;
    width: 240px;
    max-width: 33%;
    margin-left: -2px;
    margin-right: -2px;
    color: black;
}

.checkout-area ul.checkout-step .step span {
    display: block;
    padding: 0 5px;
}

.checkout-area ul.checkout-step .step .badge {
    position: relative;
    background-color: transparent;
    height: 50px;
    line-height: 50px;
    padding: 0;
}

.checkout-area ul.checkout-step .step .badge .text {
    position: absolute;
    width: 100%;
    z-index: 1;
    color: #fff;
}

.checkout-area ul.checkout-step .step:first-child .badge::before {
    width: 50%;
    left: 50%;
}

.checkout-area ul.checkout-step .step:last-child .badge::before {
    width: 50%;
    right: 50%;
}

.checkout-area ul.checkout-step .step .badge::after {
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    border-radius: 15px;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: " ";
    background-color: #CCCCCC;
    height: 30px;
    width: 30px;
    left: 50%;
    top: 50%;
    position: absolute;
    z-index: 0;
}

.checkout-area ul.checkout-step .step.active .badge::after {
    background-color: #101010;
}

.checkout-area ul.checkout-step .step .badge::before {
    content: " ";
    background-color: #CCCCCC;
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -1px;
    z-index: 0;
}

.checkout-area table img {
    max-width: 88px;
}

.checkout-area .count-area {
    padding: 20px;
}

.checkout-area .count-area .product-count {
    display: flex;
    justify-content: space-between;
}


/*login*/
.formBox {
    width: 460px;
    max-width: 100%;
    margin: 0 auto;
}

.formBox form {
    text-align: center;
}

.formBox input {
    width: 100%;
    padding: 5px;
    margin: 0 0 5px;
    border: #efefef 1px solid;
    height: 48px;
}

.formBox .text-style01 a {
    font-size: 13px;
    text-align: left;
}

.formBox .text-style01 a:hover {
    color: #000;
    text-decoration: underline;
}

.login__header {
    text-align: left;
    max-width: 460px;
    margin: 0 auto;
}

.links-container a {
    display: block;
    margin: 0 0 5px;
}

.chakra-form-control {}

.section-title {
    font-size: 32px;
    line-height: 45px;
}

.fill-btn {
    height: 48px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
}

.form-check {
    text-align: left;
}

.form-check input {
    width: 16px;
}

.form-check p {
    color: #585858;
    font-size: 13px;
}

.form-check a {
    color: #000;
    text-decoration: underline;
    margin: 0 5px;
}

.form-check a:hover {
    text-decoration: none;
}

.date-area {
    display: flex;
    text-align: left;
}

.date-list {
    display: flex;
    justify-content: space-between;
}

.date-list select {
    width: 30% !important;
}

.date-area p {
    font-size: 14px;
    color: #2b2b2b99;
}

.date-area select {
    padding: 5px;
    border: none;
    border-bottom: #efefef 1px solid;
}

.chakra-alert {
    text-align: center;
    width: 460px;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    background: #fcefed;
    color: #ff4c4c;
    border: #fed6d1 1px solid;
}

.bd-product__area,
.product__details-area {
    background-color: #fff;
}

.product__filter-count select {
    border: 1px solid #E0E2E3;
}

.product__filter-tab .tab-content {
    padding: 0;
}

.product-action-item {
    position: absolute;
    bottom: 10px;
    width: calc(100% - 20px);
    margin: 0 auto;
    transform: translate(0, -50%);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.product-action-btn {
    width: 100%;
    border-radius: 6px;
    background: #fff;
    border: #efefef 1px solid;
    box-shadow: none;
}

.product-action-btn p {
    line-height: 42px;
}

.product-action-btn:hover {
    background: #c74060;
}

.product-action-btn:hover p {
    color: #fff;
}

.product-action-btn p {
    line-height: 42px;
}

.price-list {
    display: flex;
    justify-content: space-between;
}

.price-list span {}

.price-label {
    font-size: 14px;
}

.product__details-action {
    flex-direction: column;
    gap: 10px;
}

.product__quantity .product-quantity-wrapper {
    width: 100%;
    border-radius: 6px;
    height: 48px;
    line-height: 48px;
}

.product-quantity-wrapper form {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.product__quantity .product-quantity-wrapper .cart-input {
    width: 100%;
    height: 48px;
}

.product__add-wish-btn {
    border: none;
    width: 100%;
    font-size: 15px;
    line-height: 40px;
    height: 40px;
    color: #161616;
}

.product__details-action .product__add-wish-btn:hover {
    background: transparent;
    color: #c74060;
}

.product__details-thumb-wrapper {
    flex-direction: column;
}

.product__details-thumb-tab-content .tab-content {
    padding: 0;
}

.product__details-thumb-tab .nav-tabs {
    border: 0 !important;
}

.product__details-thumb-tab .nav-tabs .nav-link {
    width: 20% !important;
    min-width: 20%;
}

.product__details-thumb-tab .nav {
    gap: 5px;
}

.product__details-thumb-tab button img {
    width: 80% !important;
    height: inherit !important;
}

.product__add-cart a {
    background: #c74060;
}

.fill-btn::before {
    background: #9d2541;
}

1 .product__add-wish-btn:hover {
    background: transparent;
    color: #161616;
}

.product__details-meta .categories a {
    display: inline-block;
    padding: 5px 12px;
    border: #ececec 1px solid;
}

.product__details-meta span {
    margin-right: 10px
}

.product__details-meta .tag a {
    display: inline-block;
    padding: 3px 16px;
    border: #ececec 1px solid;
    background: #efefef;
    border-radius: 3px;
    font-size: 14px;
}

.product__details-title {
    margin-bottom: 10px;
}

.product__details-thumb-tab .nav-tabs .nav-link {
    margin-right: 0;
}

.product__quantity .product-quantity-wrapper {
    margin-bottom: 10px;
}

.product__details-price {
    display: flex;
    flex-direction: column
}

.product__details-price .new-price {
    font-size: 20px;
    color: #c74060;
    line-height: 32px;
    margin: 0;
}

.product__details-price .old-price {
    font-size: 16px;
    line-height: 32px;
}

.shopping_cart {
    position: fixed;
    top: 93px;
    right: 50px;
    transition: opacity 0.5s ease;
    width: 280px;
    border: 1px solid rgb(0 0 0 / 5%);
    z-index: 999;
    min-height: 160px;
    background-color: #fff;
}

.offcanvas-backdrop.fade {
    opacity: 0 !important;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
}

.cart-items-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.cart-items-list img {
    max-width: 50px;
}

.cart-items-list p.p-name {
    width: calc(100% - 41px);
    margin: 0 !important;
}

.cart-items-list .p-name {
    font-size: 13px;
    color: #888;
}

.cart-items .cart-btn {
    height: 36px;
    font-size: 14px;
    background: #c74060;
}

.price-details {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    text-align: center;
}

.price-details i {
    color: #888;
}

.empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    padding: 20px;
}

/*結帳*/
.cart-area {
    padding-top: 0;
    padding-bottom: 120px;
}

.cart-area .unit-name,
.checkout-area .unit-name {
    background: #b18b5e;
    color: #fff;
    padding: 10px 15px;
}

.cart-page-pay {
    padding-top: 50px;
}

.cart-form,
.checkbox-form {
    border: 1px solid #5553;
}

.cart-form .form-group,
.checkbox-form .form-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 15px;
}

.cart-form .form-group label {
    display: block;
}

.cart-form .form-group select {
    width: 100%;
    border: 1px #9f9994 solid;
    padding: 5px;
    border-radius: 3px;
}

.cart-form .cart-info {
    padding: 15px;
    color: #686868;
}

.cart-note {
    border: 1px #5553 solid;
    padding: 15px;
}

.checkout-area .order-info {
    padding: 20px 20px 45px;
}

.checkout-area .login-btn {
    background-color: #5cb85c;
}

.checkout-area .order-info input,
.checkout-area .order-info select {
    border: 1px #9f9994 solid;
    height: 40px;
    line-height: 40px;
    padding: 10px;
    border-radius: 3px;
}

.checkout-area .your-order {
    padding: 20px 20px 45px;
}

.checkout-area .phone-info {
    display: flex;
    flex-wrap: wrap;
    align-content: stretch;
    border: 1px #9f9994 solid;
    border-radius: 3px;
}

.checkout-area .phone-info input {
    display: inline-flex;
    border: none;
}

.checkout-area .phone-info span {
    line-height: 40px;
    padding: 5px;
}

.checkout-area .country-group {
    width: 100px;
    border: none;
    border-right: 1px solid #ddd;
}

.checkout-area .order-notes {
    border: 1px #5553 solid;
    padding: 10px;
    border-radius: 3px;
}

.checkout-area {
    display: flex;
}

.checkout-area .form-check {
    border-bottom: 1px solid #5553;
}

.checkout-area table .product-quantity {
    width: 100px;
}

.checkout-area table .product-quantity-form form {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
}

.checkout-area table .product-quantity-form input {
    width: 60px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.checkout-area table .product-quantity {
    text-align: center;
    width: 168px;
}

.checkout-area table .product-quantity-form button {
    width: 40px !important;
    height: 40px !important;
    padding: 0 5px;
}

.checkout-area table .product-quantity-form .cart-plus {
    width: inherit;
}

.checkout-footer_container {
    padding: 0;
    border: 1px solid #5553;
}

.checkout-footer_container .form-check {
    float: right;
    width: 100%;
    padding: 15px;
}

.checkout-footer_container .form-check p {
    margin: 0;
}

.checkout-terms {}

.checkout-terms .form-check {
    text-align: right;
}

.checkout-ok {
    width: 100%;
    padding: 15px;
}

.dely-info {
    display: flex;
}

.dely-info input {
    width: inherit !important;
    height: inherit !important;
    display: inline-block;
}

.dely-info p {
    display: inline-block;
    margin: 0 0 0 10px;
    line-height: 40px;
}

.form-group-address {
    display: flex;
}

.form-group-address select {
    width: 100%;
}

/*user-info*/
.user-info {
    max-width: 1000px;
}

.user-info h3 {
    font-size: 28px;
    font-weight: 400;
}

.user-info .phone-info input {
    width: 100%;
}

.user-info .btn-add {
    line-height: 42px;
    color: #b18b5e;
}

.user-info .btn-add:hover {
    text-decoration: underline;
}

.tab-content {
    padding: 20px;
    border: 0;
    border-top: none;
}

.tab-content .tab-pane {
    text-align: center;
}

.tab-content .order-list {
    padding: 20px 20px 40px;
}

.nav-tabs {
    border-bottom: 1px #5553 solid !important;
    background-color: #fff !important;
}

.nav-tabs .nav-item {
    background: #ece5df;
    color: #2c2c2c;
    border-bottom: 1px #5553 solid;
}

.nav-tabs .nav-link {
    color: #2c2c2c;
    border: 0;
    min-width: 128px;
    border-radius: 0;
    text-align: center;
    padding-bottom: 6px;
}

.nav-tabs .nav-link:hover {
    color: #2c2c2c;
    border: 0;
    background-color: #fff !important;
}

.nav-tabs .active {
    color: #2c2c2c !important;
    background-color: #fff !important;
}

.nav-tabs span {
    padding-bottom: 7px;
}

.nav-tabs .active span {
    border-bottom: 2px #c74060 solid;
}

.user-name {
    text-align: left;
}

.user-data .button-area {
    width: 100%;
    justify-content: flex-end;
}

.user-data .new-code {
    color: #5cb85c;
}

.user-data .new-code:hover {
    text-decoration: underline;
}

.user-level {
    display: inline-block;
    background: #f0ad4e;
    padding: 2px 12px;
    border-radius: 99px;
    color: #fff;
    font-size: 13px;
    margin-left: 20px;
}

.chakra-button {
    background-color: #5cb85c;
    width: calc(100% - 98px);
    line-height: 40px;
    height: 40px;
}

.user-content {
    display: flex;
    text-align: left;
}

.user-content .header-area {
    text-align: left;
    padding: 10px;
    background-color: #eaeaea;
}

.member-center-profile {
    padding: 20px;
    border: 1px #5553 solid;
}

.member-center-profile .form-group {
    display: flex;
    margin-bottom: 5px;
    justify-content: space-between;
    vertical-align: middle;
}

.member-center-profile label {
    min-width: 98px;
    line-height: 40px;
}

.member-center-profile input {
    width: calc(100% - 98px);
    padding: 5px;
}

.member-center-profile .button-area {
    justify-content: flex-end;
}

.member-center-profile .btn-order {
    display: inline-block;
    padding: 3px 12px;
    border: 1px #b18b5e solid;
    color: #111;
    line-height: 32px;
}

.member-center-profile .btn-order-ok {
    display: inline-block;
    padding: 3px 12px;
    border: 1px #b18b5e solid;
    color: #111;
    background-color: #ece5df;
    line-height: 32px;
}

.table-content {
    padding: 20px;
}

table.order-data {
    text-align: left !important;
}

table.order-data td {
    font-size: 13px;
}

table.order-data img {
    max-width: 80px;
}

.table> :not(caption)>*>* {
    vertical-align: middle;
}

table .order-detail {
    display: inline-block;
    padding: 3px 16px;
    border: 1px #b18b5e solid;
    color: #111;
    background-color: #ece5df;
}

.order-content {
    border: 1px solid #5553;
}

.order-content .order-body {
    padding: 20px 20px 40px;
}

/*footer-start*/
.footer-bg {
    background: #fff;
    border-top: #efefef 1px solid;
}

.footer-widget-title h4 {
    color: #2f2f2f;
}

.footer-copyright-area {
    background: #fff;
}

.footer-copyright-area p {
    color: #2f2f2f;
}

.footer-copyright-area a,
.footer-info-text a,
.footer-style-4 .footer-link ul li a {
    color: #2f2f2f !important;
}

/*.footer-copyright-area {
    border-top: #efefef 1px solid;
}*/

.footer-logo img {
    max-width: 188px;
}

.sidebar__search-input button {
    height: 48px !important;
    line-height: 48px !important;
}

.sidebar__widget .sidebar-header {
    font-size: 16px;
    color: #000;
    font-weight: bold;
    background-color: #fff;
    padding: 10px 15px 5px 35px;
    border-bottom: 1px rgba(3, 4, 28, 0.1) solid;
}

.sidebar__widget ul li {
    background-color: #fff;
    padding: 0 8px;
    margin: 0;
}

.sidebar__widget ul li a {
    padding: 5px 15px 5px 35px;
    box-shadow: none;
    font-size: 13px;
}

.sidebar__widget ul li a::after {
    width: 2px;
    height: 2px;
}

/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b18b5e;
    --primary-hover: #4cae4c;
    --secondary-color: #6c757d;
    --danger-color: #dc3545;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頂部導航 */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 28px;
}

/*.header-search {
    flex: 1;
    max-width: 500px;
    display: flex;
    position: relative;
}

.header-search input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 14px;
}

.header-search input:focus {
    border-color: var(--primary-color);
}

.header-search button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.header-search button:hover {
    background-color: var(--primary-hover);
}
*/
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    position: relative;
    color: var(--text-dark);
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.icon-link:hover {
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* 麵包屑 */
.breadcrumb {
    background-color: var(--bg-white);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--text-muted);
}

/* 主要內容區 */
.main-content {}

.member-layout {
    display: flex;
    flex-direction: column
}

.userBox .container {
    padding: 0;
}

/* 側邊欄 */
.sidebar {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: relative;
    top: 20px;
    margin: 0 0 50px;
}

.user-info {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #b18b5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.avatar i {
    font-size: 40px;
    color: white;
}

.user-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.user-info p {
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-nav {
    display: flex;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    /*    background-color: var(--bg-light);
    border-left-color: var(--primary-color);*/
    color: var(--primary-color);
}

.nav-item.active {
    /*    background-color: rgba(177, 139, 94, 0.1);
    border-left-color: var(--primary-color);*/
    color: var(--primary-color);
    font-weight: 500;
}

.nav-item.logout {
    color: var(--danger-color);
    margin-top: 10px;
}

.nav-item.logout:hover {
    /*    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);*/
}

/* 內容區 */
.content-area {
    background-color: var(--bg-white);
    border-radius: 10px;
    /*box-shadow: var(--shadow);*/
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* 卡片 */
.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.card-body {
    padding: 25px;
}

/* 資訊顯示 */
.info-display .info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-display .info-row:last-child {
    border-bottom: none;
}

.info-display label {
    width: 120px;
    color: var(--text-light);
    font-weight: 500;
}

.info-display span {
    flex: 1;
    color: var(--text-dark);
}

/* 表單 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* 按鈕 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(92, 184, 92, 0.3);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-danger-outline {
    background-color: white;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn-danger-outline:hover {
    background-color: var(--danger-color);
    color: white;
}

.btn-edit,
.btn-add {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.btn-edit:hover,
.btn-add:hover {
    color: var(--primary-hover);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link.text-danger {
    color: var(--danger-color);
}

/* 地址列表 */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.address-item:hover {
    box-shadow: var(--shadow);
}

.address-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.address-content {
    flex: 1;
}

.address-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.address-detail {
    color: var(--text-light);
    font-size: 14px;
}

.address-actions {
    display: flex;
    gap: 10px;
}

/* 訂單列表 */
.order-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    height: 48px;
}

.order-filter input {
    height: 48px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.order-item:hover {
    box-shadow: var(--shadow-hover);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.order-number {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.order-date {
    color: var(--text-muted);
}

.order-status {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
}

.status-completed {
    background-color: rgba(92, 184, 92, 0.1);
    color: #333;
}

.status-shipping {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #886601;
}

.order-content-area {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
}

.order-content-area .order-body {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.order-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-details {
    flex: 1;
}

.product-title {
    font-size: 1.25rem;
}

.product-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.product-thumb {
    position: relative;
    padding: 10px;
}

.product-spec {
    color: var(--text-light);
    font-size: 14px;
}

.product-content {
    margin: 0;
}

.order-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

/* 分頁 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 通知設定 */
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.notification-info i {
    font-size: 28px;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.notification-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.notification-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* 開關按鈕 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* 密碼表單 */
.password-form {
    max-width: 500px;
}

.security-tips {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.security-tips h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.security-tips ul {
    margin-left: 20px;
}

.security-tips li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* 頁腳 */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .member-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .sidebar-nav {
        display: flex;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .avatar i {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .order-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }

    .order-filter {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .content-area {
        padding: 20px 15px;
    }

    .card-body {
        padding: 15px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* 彈出視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    top: 50px;
    background-color: var(--bg-white);
    border-radius: 10px;
    width: 100%;
    max-width: 1000px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.modal-content.modal-large {
    max-width: 1000px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 10px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

/* 表單行樣式 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.required {
    color: var(--danger-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 訂單詳情樣式 */
.order-detail-section {
    margin-bottom: 25px;
}

.order-detail-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-item label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.order-info-item span {
    color: var(--text-dark);
    font-weight: 500;
}

#lp_form input,
.form-select {
    height: 48px;
    font-size: inherit;
}

#lp_form input[type="radio"] {
    height: 16px !important;
}

#lp_form .btn-primary {
    width: 50%;
    height: 48px;
}

.product-detail-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-detail-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h5 {
    font-size: 15px;
    margin-bottom: 5px;
}

.product-detail-info p {
    color: var(--text-light);
    font-size: 14px;
    margin: 3px 0;
}

.product-detail-price {
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

.order-summary {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
}

/* 取消訂單樣式 */
.cancel-order-info {
    background-color: var(--bg-light);
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
}

.cancel-order-info span {
    font-weight: bold;
    color: var(--primary-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 地址郵遞區號顯示 */
.address-zipcode {
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 5px;
}

.hidden {
    display: none;
}

.loginBox input {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
}

.loginBox button {
    width: 100%;
    padding: 10px;
    background: #0078d7;
    color: white;
    border: none;
    cursor: pointer;
}

.loginBox button:hover {
    background: #005a9e;
}

.loginBox .info {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 6px;
}

.offcanvas {
    width: 100% !important;
    top:93px;
}

.offcanvas-header .btn-close {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99;
}

/* 手機版彈出視窗優化 */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal.show {
        padding: 0;
        align-items: stretch;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-item {
        flex-direction: column;
    }

    .product-detail-price {
        text-align: left;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .product__filter-tab .row>* {
        width: 50%;
    }

    .shopping_cart {
        top: 68px;
        right: 0;
    }

    @media (max-width: 575px) {}