﻿@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Antonio';
    src: url('../fonts/Antonio-ExtraLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 16px;
}

    body.banner-page {
        overflow: hidden !important;
        height: 100vh;
    }



:root {
    --navbar-height: 56px;
    --footer-height: 400px;
    --main-coffee-color: #af9687;
    --font-main: 'Lora', sans-serif;
    --font-body: 'Lora', sans-serif;
    --font-size-title: var(--font-size-title-lg);
    --font-size-body: var(--font-size-body-lg);
    --font-size-title-xs: 17px;
    --font-size-title-sm: 18px;
    --font-size-title-md: 19px;
    --font-size-title-lg: 20px;
    --font-size-body-xs: 13px;
    --font-size-body-sm: 14px;
    --font-size-body-md: 15px;
    --font-size-body-lg: 16px;
}

@media (max-width: 767px) {
    :root {
        --font-size-title: var(--font-size-title-xs);
        --font-size-body: var(--font-size-body-xs);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --font-size-title: var(--font-size-title-sm);
        --font-size-body: var(--font-size-body-sm);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    :root {
        --font-size-title: var(--font-size-title-md);
        --font-size-body: var(--font-size-body-md);
    }
}

@media (min-width: 1400px) {
    :root {
        --font-size-title: var(--font-size-title-lg);
        --font-size-body: var(--font-size-body-lg);
    }
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-body);
    letter-spacing: 0.5px;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    height: var(--navbar-height);
}

.navbar-brand {
    font-weight: 500;
}

.navbar .dx-button {
    padding: 0.375rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .navbar .dx-button:hover {
        background-color: rgba(0,0,0,0.05);
    }

/* Cart Badge */
.rounded-circle {
    background-color: #333333;
    color: white;
    padding: 0.45em 0.6em;
    transform: translate(-60%, 22%) !important;
}

.top-menu .dx-menu-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.main-content {
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    overflow: hidden;
}

.banner-page .main-content {
    padding: 0 !important;
    margin: 0 !important;
    height: calc(100vh - var(--navbar-height));
    overflow: hidden !important;
}

/* Footer */
footer.bg-main {
    min-height: 400px;
    font-family: 'Mulish', sans-serif;
}

footer .text-white-50 {
    transition: color 0.2s;
}

    footer .text-white-50:hover {
        color: #fff !important;
        text-decoration: none;
    }

.text-light-black {
    color: #333333;
}

.dx-bs5.bg-light {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
}

.search-container {
    margin-top: 20px;
}

.navbar .dx-button,
.top-menu .dx-menu-item,
footer .text-white-50 {
    transition: all 0.2s ease-in-out;
}

.bg-main {
    background-color: var(--main-coffee-color);
}

.txt-light-black {
    color: #333 !important;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--main-coffee-color);
}

.header-spacer {
    height: 80px;
    margin: 0;
    padding: 0;
}

@media (max-width: 991.98px) {
    .header-spacer {
        height: 55px;
        margin: 0;
        padding: 0;
    }
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: auto;
}

.category-tabs-wrapper {
    width: 100%;
    border-top: 1px solid #e5e5e5;
    background-color: #fff;
    border: black;
    margin-bottom: -1px;
}

.category-tabs {
    margin-top: 5px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
}

.nav-tab-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

.nav-tab {
    position: relative;
    text-decoration: none;
    padding: 10px 5px 8px;
    margin: 0 30px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    color: white;
    text-align: center;
}

    .nav-tab::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-tab:hover::after {
        width: 80%;
    }

/*    .nav-tab.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: white;
        transform: none;
    }*/

@media (min-width: 992px) {
    .nav-tab {
        margin: 0 50px;
        padding: 10px 5px 8px;
    }

        .nav-tab:hover::after {
            width: 80%;
        }

    /*        .nav-tab.active::after {
            width: 100%;
        }*/
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .nav-tab-container {
        justify-content: space-between;
        max-width: 70%;
        padding: 0 5px;
    }

    .nav-tab {
        margin: 0 5px;
        padding: 10px 10px 8px;
        flex: 1;
    }

        .nav-tab:hover::after {
            width: 70%;
        }

    /*        .nav-tab.active::after {
            width: 70%;
            left: 15%;
            transform: none;
        }*/
}

@media (max-width: 767.98px) {
    .nav-tab-container {
        justify-content: space-between;
        max-width: 100%;
        padding: 0 5px;
    }

    .nav-tab {
        margin: 0 5px;
        padding: 10px 10px 8px;
        flex: 1;
    }

        .nav-tab:hover::after {
            width: 60%;
        }

    /*.nav-tab.active::after {
            width: 60%;
            left: 20%;*/ /* 居中 */
    /*transform: none;
        }*/
}

@media (max-width: 576px) {
    .nav-tab-container {
        justify-content: space-around;
        max-width: 100%;
        padding: 0 5px;
    }

    .nav-tab {
        margin: 0 5px;
        padding: 10px 10px 8px;
        font-size: 14px;
        flex: 1;
    }

        .nav-tab:hover::after {
            width: 50%;
        }

    /*        .nav-tab.active::after {
            width: 50%;
            left: 25%;
            transform: none;
        }*/
}

.badge-position {
    top: -10px !important;
    right: -20px;
    transform: none;
}

.badge {
    font-size: 0.8rem;
    padding: 4px 6px;
}

.offcanvas {
    max-width: 320px;
    width: 85%;
}

.offcanvas-title {
    font-weight: 600;
    color: var(--main-coffee-color);
}

.form-check-input:checked {
    background-color: #af9687;
    border-color: #af9687;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

    input[type="checkbox"]:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

#react-default-root,
#react-default-root > div {
    height: calc(100vh - var(--navbar-height));
    overflow: hidden;
}

/*.banner-swiper,
.swiper,
.swiper-wrapper,
.swiper-slide {
    margin: 0 !important;
    padding: 0 !important;
}*/

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.banner-container {
    height: calc(100vh - var(--navbar-height));
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
    transform: scale(1.2);
}

.swiper-pagination-vertical {
    right: 20px !important;
    left: auto !important;
    width: auto !important;
}

@media (min-width: 1400px) {
    .swiper-pagination {
        right: 40px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .swiper-pagination {
        right: 35px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .swiper-pagination {
        right: 30px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .swiper-pagination {
        right: 25px !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .swiper-pagination {
        right: 20px !important;
    }
}

@media (min-width: 481px) and (max-width: 575px) {
    .swiper-pagination {
        right: 15px !important;
    }
}

@media (min-width: 376px) and (max-width: 480px) {
    .swiper-pagination {
        right: 12px !important;
    }
}

@media (max-width: 375px) {
    .swiper-pagination {
        right: 10px !important;
    }
}


/* FAQ Sidebar Styles */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: white;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

    .sidebar-item:hover {
        text-decoration: underline;
    }

    .sidebar-item.active {
        font-weight: 600;
        color: #333;
        position: relative;
    }

        .sidebar-item.active span {
            position: relative;
            z-index: 2;
        }

        .sidebar-item.active::before {
            content: "";
            position: absolute;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: rgba(175, 150, 135, 0.5);
            left: 0%;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1;
        }
/* Sweet Alert */
.swal2-title {
    font-family: "Antonio", sans-serif !important;
    font-weight: 500 !important;
}

.swal2-html-container {
    font-family: "Open Sans", sans-serif !important;
}

.swal2-confirm, .swal2-cancel, .swal2-deny {
    font-family: "Open Sans", sans-serif !important;
    min-width: 120px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
}

    .swal2-confirm:hover {
        opacity: 0.9 !important;
        transform: translateY(-1px) !important;
    }

@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        max-width: 400px !important;
    }

    .swal2-confirm, .swal2-cancel, .swal2-deny {
        font-size: 16px !important;
        min-width: 140px !important;
    }
}


.skeleton-wrapper {
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton-section {
    margin-bottom: 2rem;
}


.skeleton-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.skeleton-subtitle {
    height: 14px;
    width: 80px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 0 auto 8px auto;
}

.skeleton-title {
    height: 24px;
    width: 160px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 0 auto;
}


.skeleton-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.skeleton-category-item {
    text-align: center;
}

.skeleton-circle {
    width: 100%;
    padding-bottom: 100%;
    background-color: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 8px auto;
    position: relative;
    max-width: 140px;
}

.skeleton-category-name {
    height: 14px;
    width: 80%;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 0 auto;
}

.skeleton-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 3px;
}

.skeleton-product-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
}

.skeleton-product-image {
    width: 100%;
    height: 280px;
    background-color: #e2e8f0;
    border-radius: 0;
}

.skeleton-product-content {
    padding: 0 3px 4px 3px;
}

.skeleton-product-title {
    height: 30px;
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 4px;
}

.skeleton-product-colors {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
    min-height: 14px;
}

.skeleton-color-dot {
    width: 10px;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 2px;
}

.skeleton-product-price {
    height: 16px;
    width: 70%;
    background-color: #e2e8f0;
    border-radius: 4px;
}


@media (min-width: 768px) and (max-width: 991px) {
    .skeleton-categories {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .skeleton-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .skeleton-product-image {
        height: 300px;
    }

    .skeleton-product-content {
        padding: 0 6px 6px 6px;
    }

    .skeleton-product-title {
        font-size: 0.85rem;
        height: 34px;
        margin-bottom: 6px;
    }

    .skeleton-color-dot {
        width: 13px;
        height: 13px;
        margin-right: 4px;
    }

    .skeleton-product-colors {
        margin-bottom: 6px;
        min-height: 18px;
    }

    .skeleton-product-price {
        height: 18px;
    }
}


@media (min-width: 992px) and (max-width: 1200px) {
    .skeleton-categories {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }

    .skeleton-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .skeleton-product-image {
        height: 340px;
    }

    .skeleton-product-content {
        padding: 0 6px 6px 6px;
    }

    .skeleton-product-title {
        height: 36px;
        margin-bottom: 6px;
    }

    .skeleton-color-dot {
        width: 13px;
        height: 13px;
        margin-right: 4px;
    }

    .skeleton-product-colors {
        margin-bottom: 6px;
        min-height: 18px;
    }

    .skeleton-product-price {
        height: 18px;
    }
}

@media (min-width: 1201px) {
    .skeleton-categories {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }

    .skeleton-products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
        max-width: 1400px;
        margin: 0 auto;
    }

    .skeleton-product-image {
        height: 360px;
    }

    .skeleton-product-content {
        padding: 0 6px 6px 6px;
    }

    .skeleton-product-title {
        height: 36px;
        margin-bottom: 6px;
    }

    .skeleton-color-dot {
        width: 13px;
        height: 13px;
        margin-right: 4px;
    }

    .skeleton-product-colors {
        margin-bottom: 6px;
        min-height: 18px;
    }

    .skeleton-product-price {
        height: 18px;
    }
}


.skeleton-wrapper.fade-out {
    animation: skeleton-fade-out 0.3s ease-out forwards;
}

@keyframes skeleton-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
}


.category-content-fade-in {
    animation: category-fade-in 0.4s ease-out forwards;
}

@keyframes category-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-skeleton-wrapper {
    animation: collection-skeleton-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes collection-skeleton-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton-filters-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.skeleton-filter-button {
    width: 120px;
    height: 36px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton-products-count {
    width: 80px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton-filters-top-spacer {
    height: 60px;
}

.skeleton-filter-sidebar {
    max-height: calc(100vh - 100px);
    padding-right: 10px;
}

.skeleton-filter-group {
    margin-bottom: 2rem;
}

.skeleton-filter-title {
    width: 120px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-filter-options {
    margin-bottom: 1rem;
}

.skeleton-filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skeleton-checkbox {
    width: 16px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 2px;
    margin-right: 0.5rem;
}

.skeleton-option-label {
    width: 80px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.skeleton-color-dot {
    width: 25px;
    height: 25px;
    background-color: #e2e8f0;
    border-radius: 50%;
}

.skeleton-title-wrapper {
    margin-bottom: 2rem;
}

.skeleton-page-title {
    width: 200px;
    height: 28px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-product-count {
    width: 120px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton-sort-select {
    width: 160px;
    height: 32px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.skeleton-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
}

.skeleton-product-card {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.skeleton-product-image {
    width: 100%;
    aspect-ratio: 5 / 7;
    background-color: #e2e8f0;
    border-radius: 0;
}

.skeleton-product-content {
    padding: 8px;
}

.skeleton-product-title {
    width: 100%;
    height: 40px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-product-colors {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.skeleton-product-color-dot {
    width: 12px;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 50%;
}

.skeleton-product-price {
    width: 70%;
    height: 18px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .skeleton-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .skeleton-filters-top-bar {
        display: none;
    }

    .skeleton-filters-top-spacer {
        display: none;
    }
}

@media (min-width: 992px) {
    .skeleton-filter-sidebar {
        display: block;
    }

    .skeleton-controls-row {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .skeleton-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .skeleton-filter-sidebar {
        display: none;
    }

    .skeleton-controls-row {
        display: none;
    }

    .skeleton-filters-top-bar {
        display: flex;
    }

    .skeleton-filters-top-spacer {
        display: block;
    }
}

@media (max-width: 576px) {
    .skeleton-products-grid {
        gap: 3px;
    }

    .skeleton-product-content {
        padding: 6px;
    }

    .skeleton-page-title {
        width: 150px;
        height: 24px;
    }
}

.collection-skeleton-wrapper.fade-out {
    animation: collection-skeleton-fade-out 0.3s ease-out forwards;
}

@keyframes collection-skeleton-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
}

.collection-content-fade-in {
    animation: collection-content-fade-in 0.4s ease-out forwards;
}

@keyframes collection-content-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product 頁面骨架屏樣式 */
.product-skeleton-wrapper {
    animation: product-skeleton-pulse 1.5s ease-in-out infinite alternate;
    width: 100%;
    max-width: 1296px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-bottom: 80px;
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 40px;
}

@keyframes product-skeleton-pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.product-skeleton-container {
    width: 100%;
}

/* 桌面版佈局 */
.product-skeleton-desktop {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.product-skeleton-images {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0;
    box-sizing: border-box;
}

.product-skeleton-info {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 圖片網格骨架 */
.product-skeleton-images-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.product-skeleton-image-item {
    width: 50%;
    padding: 0 6px 12px;
    box-sizing: border-box;
}

.product-skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #e2e8f0;
    border-radius: 0;
    border: 1px solid #f0f0f0;
}

/* 產品資訊骨架 */
.product-skeleton-title {
    width: 80%;
    height: 28px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-skeleton-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.product-skeleton-stars {
    width: 100px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.product-skeleton-review-count {
    width: 80px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.product-skeleton-code {
    width: 150px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 16px;
}

.product-skeleton-price {
    width: 120px;
    height: 32px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 16px 0;
}

/* 選項區域骨架 */
.product-skeleton-section {
    margin-bottom: 24px;
}

.product-skeleton-label {
    width: 80px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* 顏色選擇骨架 */
.product-skeleton-colors {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.product-skeleton-color-item {
    width: 30px;
    height: 30px;
    background-color: #e2e8f0;
    border-radius: 50%;
}

/* 尺寸選擇骨架 */
.product-skeleton-sizes {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.product-skeleton-size-item {
    width: 40px;
    height: 40px;
    background-color: #e2e8f0;
    border-radius: 0;
}

/* 數量選擇骨架 */
.product-skeleton-quantity {
    width: 250px;
    height: 40px;
    background-color: #e2e8f0;
    border-radius: 0;
    margin-top: 4px;
}

/* 操作按鈕骨架 */
.product-skeleton-actions {
    display: flex;
    margin-top: 32px;
    gap: 8px;
}

.product-skeleton-add-cart-btn {
    flex: 1;
    height: 44px;
    background-color: #e2e8f0;
    border-radius: 0;
}

.product-skeleton-wishlist-btn {
    width: 44px;
    height: 44px;
    background-color: #e2e8f0;
    border-radius: 0;
}


.product-skeleton-shipping {
    margin-top: 24px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.product-skeleton-shipping-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

    .product-skeleton-shipping-item:last-child {
        margin-bottom: 0;
    }

.product-skeleton-shipping-icon {
    width: 20px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.product-skeleton-shipping-content {
    flex: 1;
}

.product-skeleton-shipping-text {
    width: 100%;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 8px;
}

    .product-skeleton-shipping-text.short {
        width: 70%;
        margin-bottom: 0;
    }

.product-skeleton-mobile {
    display: none;
}

.product-skeleton-mobile-carousel {
    width: 100%;
    margin-bottom: 24px;
    padding: 0 15px;
}

.product-skeleton-mobile-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #e2e8f0;
    border-radius: 0;
    border: 1px solid #f0f0f0;
}

.product-skeleton-mobile-info {
    padding: 0 15px;
}

.product-skeleton-mobile-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px -2px 10px rgba(0,0,0,0.1);
}

.product-skeleton-mobile-add-cart {
    flex: 1;
    height: 44px;
    background-color: #e2e8f0;
    border-radius: 0;
    margin-right: 8px;
}

.product-skeleton-mobile-wishlist {
    width: 44px;
    height: 44px;
    background-color: #e2e8f0;
    border-radius: 0;
}

.product-skeleton-reviews {
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
    padding: 40px 15px 0;
}

.product-skeleton-reviews-title {
    width: 120px;
    height: 24px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 0 auto 20px;
}

.product-skeleton-review-item {
    padding: 15px 0;
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 25px;
}

    .product-skeleton-review-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.product-skeleton-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-skeleton-review-title {
    width: 200px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.product-skeleton-review-date {
    width: 80px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.product-skeleton-review-stars {
    width: 100px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-skeleton-review-content {
    width: 100%;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 12px;
}

    .product-skeleton-review-content.short {
        width: 75%;
    }

.product-skeleton-reviewer-info {
    width: 250px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-top: 12px;
}

@media (max-width: 1023px) {
    .product-skeleton-desktop {
        display: none;
    }

    .product-skeleton-mobile {
        display: block;
    }
}

@media (min-width: 1024px) {
    .product-skeleton-desktop {
        display: flex;
    }

    .product-skeleton-mobile {
        display: none;
    }

    .product-skeleton-reviews {
        padding: 40px 0 0;
    }
}

@media (max-width: 768px) {
    .product-skeleton-wrapper {
        margin-top: 20px;
    }

    .product-skeleton-mobile-info {
        padding-bottom: 80px;
    }

    .product-skeleton-colors {
        gap: 8px;
    }

    .product-skeleton-color-item {
        width: 28px;
        height: 28px;
    }

    .product-skeleton-sizes {
        gap: 6px;
    }

    .product-skeleton-size-item {
        width: 36px;
        height: 36px;
    }

    .product-skeleton-quantity {
        width: 200px;
        height: 36px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .product-skeleton-wrapper {
        margin-top: 25px;
    }
}


.product-skeleton-wrapper.fade-out {
    animation: product-skeleton-fade-out 0.3s ease-out forwards;
}

@keyframes product-skeleton-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
}

.product-content-fade-in {
    animation: product-content-fade-in 0.4s ease-out forwards;
}

@keyframes product-content-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
