:root {
    /* Professional color palette for industrial audience */
    --theme-color: #1a4f72;
    --theme-color-hover: #2c6a99;
    --accent-color: #3498db;

    /* Text colors */
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-light: #777777;

    /* Background colors */
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --bg-sidebar: #f2f5f8;
    --bg-highlight: #fffceb; /* Light yellow for hover state */

    /* Border colors */
    --border-light: #e0e0e0;
    --border-medium: #cccccc;
    --border-accent: #1a4f72;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);

    /* Keep existing color variables */
    --red-1: rgb(199, 30, 30);
    --red-2: #C0392B;
    --red-3: #FFA07A;
    --blue-1: #3498DB;
    --blue-2: #2C3E50;
    --blue-3: #AEDFF7;
    --green-1: #2ECC71;
    --green-2: #A8E6A1;
    --green-3: #006400;
    --purple-1: #8E44AD;
    --purple-2: #5D3F6A;
    --purple-3: #D2B4DE;
    --orange-1: #FF6F00;
    --orange-2: #D35400;
    --orange-3: #FFB74D;
    --yellow-1: #F1C40F;
    --yellow-2: #F39C12;
    --yellow-3: #F7DC6F;
    --pink-1: #E91E63;
    --pink-2: #C2185B;
    --pink-3: #F48FB1;
    --teal-1: #1ABC9C;
    --teal-2: #16A085;
    --teal-3: #B2DFDB;
    --gray-1: #7F8C8D;
    --gray-2: #34495E;
    --gray-3: #BDC3C7;
    --white-1: #FFFFFF;
    --white-2: #F8F9FA;
    --white-3: #F0F0F0;
    --white-4: #EDEDED;
    --bg-white: #E3E0DB;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Dashboard Colours */
    --dashboard-font-family: 'Inter', sans-serif;
        --dashboard-primary-text: #333;
        --dashboard-secondary-text: #555;
        --dashboard-light-text: #777;
        --dashboard-accent-color: #007bff; 
        --dashboard-card-bg: #ffffff;
        --dashboard-page-bg: #f7f8fa;
        --dashboard-border-color: #e0e0e6;
        --dashboard-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        --dashboard-card-hover-shadow: 0 6px 20px rgba(0,0,0,0.08);
        --dashboard-border-radius: 8px;

    /* Navigation bar colours */
    --theme-nav-color: #1a4f72; /* Primary theme color for nav */
    --theme-nav-color-hover: #2c6a99; /* Hover state for primary elements */
    --theme-nav-accent-color: #3498db; /* Accent color for icons, active states */

    /* Addresses Page */
    --theme-address-color-primary: #1a4f72;
    --theme-address-color-primary-hover: #2c6a99;
    --theme-address-color-accent: #3498db;

    --theme-address-text-primary: #333333;
    --theme-address-text-secondary: #555555;
    --theme-address-text-light: #777777;

    --theme-address-bg-page: #f8f9fa;
    --theme-address-bg-card: #ffffff;
    --theme-address-bg-card-header: #f8f9fa;

    --theme-address-border-light: #e0e0e0;

    --theme-address-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --theme-address-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.12);

    --theme-address-font-family: 'Inter', sans-serif;
    --theme-address-border-radius: 8px;

    /* Text colors */
    --theme-nav-text-primary: #333333; /* Main text in nav */
    --theme-nav-text-secondary: #555555; /* Subtler text */
    --theme-nav-text-on-dark-bg: #ffffff; /* Text on dark backgrounds (e.g., logout button) */

    /* Background colors */
    --theme-nav-bg-sidebar: #f2f5f8; /* Main background of the navigation panel */
    --theme-nav-bg-item-hover: #e9ecef; /* Background for nav items on hover */
    --theme-nav-bg-item-active: #dde8f0; /* Background for active nav item */


    /* Border colors */
    --theme-nav-border-light: #e0e0e0; /* Light borders for separators */
    --theme-nav-border-active: var(--theme-nav-accent-color); /* Border for active item (e.g., left border) */

    /* Shadows */
    --theme-nav-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Font */
    --theme-nav-font-family: 'Inter', sans-serif;
    --theme-nav-border-radius: 6px;

    /* Cart */
    --theme-cart-color-primary: #1a4f72;
    --theme-cart-color-primary-hover: #2c6a99;
    --theme-cart-color-accent: #3498db;

    --theme-cart-text-primary: #333333;
    --theme-cart-text-secondary: #555555;
    --theme-cart-text-light: #777777;
    --theme-cart-text-on-primary: #ffffff; /* Text on primary-colored buttons */

    --theme-cart-bg-page: #f8f9fa; /* Or --bg-light */
    --theme-cart-bg-card: #ffffff; /* Or --bg-card */
    --theme-cart-bg-table-header: #f2f5f8; /* Or --bg-sidebar for a slight contrast */
    --theme-cart-bg-input: #ffffff;

    --theme-cart-border-light: #e0e0e0;
    --theme-cart-border-medium: #cccccc;
    --theme-cart-border-input: #cccccc;
    --theme-cart-border-input-focus: var(--theme-cart-color-accent);

    --theme-cart-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --theme-cart-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);

    --theme-cart-font-family: 'Inter', sans-serif;
    --theme-cart-border-radius: 8px; /* From --dashboard-border-radius */
    --theme-cart-border-radius-sm: 5px; /* For smaller elements like inputs/buttons */
    
    --theme-cart-danger-color: #C0392B; /* --red-2 */
    --theme-cart-danger-color-hover: #a03024;
    

    /* Checkout page */
    --theme-checkout-color-primary: #1a4f72;
    --theme-checkout-color-primary-hover: #2c6a99;
    --theme-checkout-color-accent: #3498db;

    --theme-checkout-text-primary: #333333;
    --theme-checkout-text-secondary: #555555;
    --theme-checkout-text-light: #777777;
    --theme-checkout-text-on-primary: #ffffff; /* Text on primary-colored buttons */
    --theme-checkout-text-error: #C0392B; /* --red-2 */

    --theme-checkout-bg-page: #f8f9fa; /* Or --bg-light */
    --theme-checkout-bg-card: #ffffff; /* Or --bg-card */
    --theme-checkout-bg-input: #ffffff;
    --theme-checkout-bg-input-disabled: #e9ecef;
    --theme-checkout-bg-order-review: #f9f9f9; /* Slightly different for order review if needed */

    --theme-checkout-border-light: #e0e0e0;
    --theme-checkout-border-medium: #cccccc;
    --theme-checkout-border-input: #cccccc;
    --theme-checkout-border-input-focus: var(--theme-checkout-color-accent);

    --theme-checkout-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --theme-checkout-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);

    --theme-checkout-font-family: 'Inter', sans-serif;
    --theme-checkout-border-radius: 8px; /* From --dashboard-border-radius */
    --theme-checkout-border-radius-sm: 5px; /* For smaller elements like inputs/buttons */


}


img {
    max-inline-size: 100%;
    block-size: auto;
}

/* Table styles */
th, td {
    padding: 12px;
    text-align: left;
    border: none;
}

th {
    background-color: #f4f4f4;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 0;
}

/*
///////////////////////////////////////////Body///////////////////////////////////////////
*/

html, body {
    margin: 0;
    height: 100%;
    scroll-behavior: smooth;
}


/* Global styles */
body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.5;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}


/*
///////////////////////////////////////////Home Page///////////////////////////////////////////
*/

/* Layout improvements */
.content-inner {
    display: flex;
    position: relative;
    margin-top: 100px;
}

/* Sidebar improvements */
.sidebar {
    border-right: 1px solid var(--border-light);
    padding-right: 15px;
}

.sidebar .main-categories {
    padding: 0;
    margin: 0;
}

.sidebar .main-categories-title {
    border-bottom: solid 2px var(--theme-color);
    margin: 5px 0 10px 0;
}

.sidebar .main-categories-title h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 8px;
}

.sidebar .category-item {
    font-size: 14px;
    padding: 8px 0;
    margin-bottom: 2px;
    list-style-type: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar .category-item a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.sidebar .category-item:hover {
    background-color: var(--bg-highlight);
    color: var(--theme-color);
    text-decoration: none;
}

.sidebar .category-item:hover a {
    color: var(--theme-color);
}

/* Main content improvements */
.main-content-wrapper {
    width: 100%;
    padding: 0 15px;
}

.main-content-title {
    margin: 15px 0 10px 0;
    border-bottom: solid 2px var(--theme-color);
    width: 100%;
}

.main-content-title h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 8px;
}

.main-content {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    height: auto;
    max-height: calc(100vh - 150px);
}

/* Category section improvements */
.category-section {
    margin-bottom: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.category-section:last-child {
    border-bottom: none;
}

.title-count-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.title-count-row h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--theme-color);
}

.title-count-row .product_cat-card-count {
    font-size: 12px;
    color: white;
    background-color: var(--theme-color);
    margin: 0 0 0 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Subcategory grid improvements */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

/* Subcategory item improvements */
.subcategory-item {
    display: flex;
    flex-direction: column;
    background-color: var(--white-1);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.subcategory-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

/* Image container improvements */
.subcategory-image {
    width: 100%;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subcategory-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 8px;
    background-color: white;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

/* 懒加载图片占位符样式 */
.subcategory-item img.lazy-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.subcategory-item img.lazy-loaded {
    opacity: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Text improvements */
.subcategory-text {
    display: flex;
    width: 100%;
    flex-direction: column;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 20px; /* Space for product count */
}

.subcategory-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

/* Product count improvements */
.subcategory-product-count {
    font-size: 11px;
    color: white;
    background-color: var(--theme-color);
    position: absolute;
    bottom: 8px;
    right: 12px;
    margin: 0;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Hover effects */
.subcategory-item:hover {
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.subcategory-item:hover {
    background-color: #fffde7;
    cursor: pointer;
}

.subcategory-item:hover img {
    transform: scale(1.05);
}

.subcategory-item:hover .subcategory-name {
    color: var(--theme-color);
}

/*
///////////////////////////////////////////Product Taxonomy///////////////////////////////////////////
*/

.product_cat-container {
    padding-left: 0;
    position: relative;
}

.product_cat-middle-categories {
    margin-left: calc(28% + 50px);
    padding: 20px 40px;
}

.product_cat-middle-category-item {
    margin-bottom: 40px;
}

.product_cat-child-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.product_cat-child-category-item, .products .product {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    transition: all 0.2s ease;
    flex-basis: 100%;
    align-items: stretch;
}

.product_cat-child-category-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: var(--theme-color);
}

.product_cat-child-category-item a {
    text-decoration: none;
    display: block;
    width: 100%;
}

.product_cat-card {
    display: flex;
    text-align: left;
    flex-direction: row;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 120px;
    width: 100%;
    align-items: stretch;
    transition: background-color 0.15s ease;
    justify-content: flex-start;
}

/* 卡片悬停反馈 - 淡黄色 */
.product_cat-child-category-item:hover .product_cat-card,
.product_cat-card:hover {
    background-color: #fffde7;
}

.product_cat-child-category-item:hover .product_cat-card-content {
    background-color: #fff9c4;
}

.product_cat-card-body {
    flex-direction: column;
    display: flex;
    height: 100%;
    width: 75%;
    word-wrap: break-word;
    padding: 12px 20px 12px 20px;
    justify-content: space-between;
}

.product_cat-child-category-name, .product_cat-card-body .category-name {
    font-size: 1.1em;
    color: var(--theme-color);
    font-weight: bold;
    margin-bottom: 10px;
    order: 1;
    flex-grow: 0;
}

.product_cat-category-description {
    font-size: 0.85em;
    color: #666;
    box-sizing: border-box;
    order: 2;
    line-height: 1.5;
    margin: 8px 0;
    flex-grow: 1;
}

.product_cat-current-category-description, .product_cat-category-description {
    padding: 0;
    margin-top: 8px;
    transition: background-color 0.2s ease;
}

.product_cat-category-description p {
    margin: 0;
}

.product_cat-card-count {
    font-size: 0.8em;
    order: 3;
    margin-top: auto;
    padding-top: 12px;
    background-color: var(--theme-color);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.product_cat-middle-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--theme-color);
    position: relative;
    display: block;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-color);
}

.product_cat-card-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 25%;
    padding: 10px;
    order: -1;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
}

.product_cat-image-container {
    flex-shrink: 0;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product_cat-image-container img {
    width: auto;
    height: auto;
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.product_cat-child-category-item a :hover .product_cat-child-category-name {
    text-decoration: underline;
}

.product_cat-child-category-item a:hover .product_cat-image-container img {
    transform: scale(1.05);
}

.floating-window {
    position: fixed;
    top: 100px;
    height: calc(100vh - 130px);
    width: 28%;
    left: 20px;
    border: 1px solid #e0e0e0;
    z-index: 100;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    transition: box-shadow 0.3s ease;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: #333;
}

/* 浮动窗口中产品数量显示样式 - 已隐藏 */
.floating-window .product_cat-product-count {
    display: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.floating-window::-webkit-scrollbar {
    display: none;
}

/* Enhanced image styling with hover effect */
.floating-window img {
    border-radius: 8px;
    border: 1px solid #e6e9ed;
    padding: 12px; /* Increased padding */
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    margin-bottom: 24px; /* Increased margin */
    display: block;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

/* Image hover effect for better product inspection */
.floating-window img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Improved title styling with better hierarchy */
.floating-window .product_cat-current-category-title {
    margin-top: 10px;
    font-size: 1.2em; /* Slightly larger */
    font-weight: 700; /* Bolder */
    color: var(--theme-color);
    margin: 0 0 16px 0;
    border-bottom: 2px solid var(--theme-color);
    letter-spacing: 0.02em; /* Improved readability */
    background-color: var(--bg-light);
    border-radius: 6px 6px 0 0;
    padding: 14px 15px;
    text-align: center; /* Center alignment for better focus */
}

/* Base styling for the description container */
.floating-window .product_cat-current-category-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    padding: 0;
    margin: 0;
}

/* Style for paragraphs in the description */
.floating-window .product_cat-current-category-description p {
    margin: 0 0 25px 0;
    padding: 0;
    position: relative;
}

/* Move the horizontal line to be below the header */
.floating-window .product_cat-current-category-description p::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--theme-color);
    position: absolute;
    top: 20px; /* Position it below the header text */
    left: 0;
}

/* Style the category headers to be above the line */
.floating-window .product_cat-current-category-description p strong,
.floating-window .product_cat-current-category-description p:first-line {
    color: var(--theme-color);
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 2; /* Ensure text is above the line */
    background-color: #f8f9fa; /* Match your background color */
    padding-right: 10px; /* Space between text and line end */
}

/* Replace dashes with bullet points */
.floating-window .product_cat-current-category-description p {
    counter-reset: list-items;
}

/* Add proper bullet points using a more direct approach */
.floating-window .product_cat-current-category-description p {
    position: relative;
}

/* Custom solution for bullet points */
.floating-window .product_cat-current-category-description p {
    text-indent: 0;
}

/*
///////////////////////////////////////////Product Taxonomy (Product Listing)///////////////////////////////////////////
*/

.filter-toggle-btn {
    display: none;
    background-color: #05445e;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin-top: 10px;
    border: none;
    font-size: 16px;
    position: absolute;
    top: 8vh;
    width: 100%;
    z-index: 1;
}

#product_cat-content {
    margin-top: 0;
    padding-top: 110px;
    min-height: calc(100vh - 80px);
}

#product_cat-content > .row {
    height: auto;
    min-height: 100%;
}

.sidebar {
    width: 12%;
    padding: 10px;
    border-right: solid 1px var(--gray-1);
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #eee;
    overflow: visible;
}

.product_cat-site-content #sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) transparent;
    order: -1;
    align-self: flex-start;
}

/* ========================================
   筛选器样式 - Filter Styles
   ======================================== */

#sidebar.filter-view {
    padding: 0;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    z-index: 2;
}

.product-filter {
    margin: 0;
    padding: 20px;
    background-color: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    max-height: 100%;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--theme-color, #05445e);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-header p {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--theme-color, #05445e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-filters {
    font-size: 12px;
    color: #c41e3a;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #c41e3a;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.reset-filters:hover {
    background: #c41e3a;
    color: #fff;
}

.filter-divider {
    display: none;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group > label {
    display: block;
    font-size: 14px;
    color: var(--theme-color, #05445e);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    box-sizing: border-box;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search:focus {
    outline: none;
    border-color: var(--theme-color, #05445e);
    box-shadow: 0 0 0 3px rgba(5, 68, 94, 0.1);
}

.filter-search::placeholder {
    color: #999;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.filter-option:hover {
    background-color: #f5f8fa;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--theme-color, #05445e);
}

.filter-option label {
    font-size: 13px;
    color: #444;
    cursor: pointer;
    flex: 1;
    margin: 0;
    font-weight: 400;
}

/* 勾选状态的筛选选项背景色 */
.filter-option:has(input[type="checkbox"]:checked) {
    background-color: #e8f4f8;
}

.filter-option:has(input[type="checkbox"]:checked) label {
    color: var(--theme-color, #05445e);
    font-weight: 600;
}

/* 快速到顶部按钮样式 */
.scroll-to-top-btn {
    position: fixed;
    bottom: 40px;
    left: 120px;
    background-color: var(--theme-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
}

.scroll-to-top-btn:hover {
    background-color: var(--theme-color-dark, #003d4f);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.scroll-to-top-btn i {
    font-size: 14px;
}

#main-content {
    display: block;
    height: auto;
    min-width: 85%;
    order: unset;
    overflow-y: visible;
    padding: 0 20px 40px 30px;
}

.product_cat-container.with-sidebar {
    padding-top: 0;
    padding-left: 0;
}

.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.product_cat-content-inner {
    width: 100%;
    height: 100%;
    margin: 0;
}

.product_cat-product-count {
    font-size: small;
    margin-bottom: 0;
    background-color: var(--theme-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    margin-left: auto;
    white-space: nowrap;
}

.product_cat-current-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid grey;
    gap: 20px;
}

.product_cat-current-category-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.product_cat-current-category-details .product_cat-current-category-title {
    color: var(--theme-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-color);
    letter-spacing: 0.01em;
}

.product_cat-current-category-details .product_cat-current-category-description {
    margin: 0;
}

.product_cat-current-category-details .product_cat-current-category-description p {
    margin: 0;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.product_cat-category-products-table {
    margin-bottom: 5px;
    width: 100%;
    border-collapse: collapse;
}

.product_cat-category-products-table th {
    font-size: 14px;
    background: rgb(189, 189, 189);
    padding: 10px;
    white-space: nowrap;
    background-color: #f2f2f2;
    text-align: left;
    border: none;
    padding: 8px;
}

.product_cat-category-products-table td {
    border: none;
    white-space: nowrap;
}

#product-title-a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

.product-popup-wrapper {
    padding-left: 10px;
    background-color: yellow;
}

.product-popup {
    position: relative;
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 10px 10px 20px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    height: auto;
    font-size: small;
    flex-flow: column;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.attribute-group {
    padding: 5px;
}

.attribute-value-button {
    background: transparent;
    border: 1px solid grey;
    border-radius: 3px;
    padding: 5px 10px;
}

.attribute-value-button.selected {
    background-color: transparent;
    font-weight: bold;
    border: 2px solid black;
}

.product-details-link.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.price-stock-container {
    background-color: rgb(244, 244, 244);
    margin-top: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid lightgray;
}

.price-stock-container .stock.in-stock {
    color: green;
    font-weight: bold;
}

.add-to-cart-button-table-row {
    width: auto;
    border: none;
    margin-top: 5px;
    margin-left: 10px;
    background-color: #2e4f5e;
    color: white;
}

.add-to-cart-button-table-row:disabled {
    background-color: gray;
    color: white;
    cursor: not-allowed;
    opacity: 0.5;
}

.woocommerce-pagination {
    margin: 0;
    margin-bottom: 5px;
}

.woocommerce-pagination ul {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
}

.woocommerce-pagination li {
    margin: 0 5px;
}

.woocommerce-pagination a, .woocommerce-pagination .current {
    font-size: 12px;
    font-weight: bold;
    color: #05445e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.woocommerce-pagination a{
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-row:hover td {
    background-color: lightyellow;
    cursor: pointer;
}

.product-row th:hover {
    background-color: var(--blue-1) !important;
}

.filter-button-container button:hover {
    background-color: #b71c1c;
    /* 鼠标悬停时按钮背景颜色加深 / Darken button background color on hover */
}

.woocommerce-pagination a:hover,
.woocommerce-pagination a:focus {
    color: #05445e;
    /* 鼠标悬停或聚焦时颜色变为红色 / Change color to red on hover/focus */
}

.attribute-option:hover:not(.disabled) {
    border-color: #777;
}

.attribute-option.selected {
    border: 2px solid #000;
    font-weight: bold;
}

.attribute-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #eee;
}

/*
///////////////////////////////////////////WooCommerce Product Page///////////////////////////////////////////
*/
.single-product-page-wrapper {
    height: 100%;
    overflow: hidden;
}

.single-product-body-title {
    margin-top: 0;
    padding: 12px 0;
    width: 100%;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 2px solid var(--theme-color, #05445e);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.single-product-title {
    margin: 0;
    border: none;
    flex-shrink: 0;
}

.single-product-body-title h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--theme-color, #05445e);
    margin: 0;
}

/* 标题区域内的面包屑 */
.single-product-breadcrumb {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.single-product-breadcrumb .woocommerce-breadcrumb {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 12px;
    color: #888;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    line-height: 1.4;
}

.single-product-breadcrumb .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.single-product-breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--theme-color, #05445e);
}

.single-product-body {
    margin: 0;
    padding: 20px 0;
    background-color: #fff;
}

.single-product-body > .row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.single-product-left-column {
    margin: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.single-product-left-column > .row {
    display: flex;
    gap: 15px;
    height: auto;
}

.single-product-gallery-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-product-gallery-image-container {
    display: flex;
    border: 2px solid #e0e0e0;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.single-product-gallery-image-container:hover {
    border-color: #999;
}

.single-product-gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.active-border {
    border: 3px solid var(--theme-color, #05445e) !important;
    box-shadow: 0 2px 8px rgba(5, 68, 94, 0.2);
}

.single-product-big-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    /* 2张图片完全显示 (400px * 2 + 15px gap = 815px)，3张以上滚动 */
    max-height: 830px;
}

.single-product-big-images::-webkit-scrollbar {
    width: 6px;
}

.single-product-big-images::-webkit-scrollbar-track {
    background: transparent;
}

.single-product-big-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.single-product-big-images::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.single-product-big-images img {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 400px;
    height: 400px;
    aspect-ratio: 1/1;
    object-fit: contain;
    cursor: pointer;
    background: #fafafa;
    transition: box-shadow 0.2s ease;
}

.single-product-big-images img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-product-right-column {
    margin: 0;
    width: 100%;
    max-width: 550px;
    overflow: visible;
    flex: 1;
}

.product-details-top {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-details-top .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.price-stock-sku {
    flex: 1;
}

.price-stock-sku p {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.price-stock-sku p:first-child {
    font-weight: 600;
    color: var(--theme-color, #05445e);
}

.price-stock-sku p:nth-child(2) {
    font-size: 22px;
    font-weight: 700;
    color: #c41e3a;
}

.single-product-right-column p {
    font-size: 14px;
}

.qty-and-add-to-order-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-and-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.qty-and-input p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.qty-and-input input[type="numeric"] {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
}

.add-to-cart-button-wrapper {
    margin-bottom: 15px;
}

.add-to-cart-button {
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.add-to-cart-button:active {
    transform: translateY(0);
}

.cad-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cad-download img.cad-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cad-format-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.cad-download-button {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--theme-color, #05445e);
    border-radius: 6px;
    color: var(--theme-color, #05445e);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.cad-download-button:hover {
    background: var(--theme-color, #05445e);
    color: #fff;
}

.product-details-bottom {
    margin-bottom: 20px;
}

/* 属性表格样式 */
.single-product-attribute-table {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.single-product-attribute-table tbody {
    display: table;
    width: 100%;
}

.single-product-attribute-table tr {
    border: none;
    transition: background-color 0.15s ease;
}

.single-product-attribute-table tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.single-product-attribute-table tr:nth-child(even) {
    background-color: #fff;
}

.single-product-attribute-table tr:hover {
    background-color: #e8f4f8;
}

.single-product-attribute-table td {
    padding: 10px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.single-product-attribute-table tr:last-child td {
    border-bottom: none;
}

.single-product-attribute-table .attribute-name {
    color: #666;
    font-size: 13px;
    font-weight: 500;
    width: 40%;
    text-transform: capitalize;
}

.single-product-attribute-table .attribute-value {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    width: 60%;
    padding-left: 15px;
}

.single-product-attribute-table .attribute-value-button-single {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4f8;
    border-radius: 4px;
    color: var(--theme-color, #05445e);
}

.product-description {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.6;
}

.product-description p {
    margin: 0;
    color: #555;
}

/*
///////////////////////////////////////////Cart////////////////////////////////////////////
*/

.page-content {
    padding: 20px;
    margin-top: 9vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.wp-block-woocommerce-cart-items-block td img {
    max-width: 100px;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #f7f7f7;
}

.wc-block-cart-item__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    width: 100% !important;
}

.wp-block-woocommerce-cart-totals-block {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: 4.5283018868%;
}

.wp-block-woocommerce-cart-items-block td .wc-block-components-product-name {
    color: #05445e;
    text-decoration: none;
    font-weight: bold;
}

.wp-block-woocommerce-cart-items-block td .wc-block-components-product-name:hover {
    text-decoration: underline;
}

.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-item__label {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.wp-block-woocommerce-cart .wc-block-components-button, .wp-block-woocommerce-cart .wc-block-cart__submit-button {
    background-color: #1d3b8f;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

/*
///////////////////////////////////////////Search///////////////////////////////////////////
*/

.archive-product-container {
    margin-top: 10vh;
}

.site-main {
    padding-top: 9vh; /* 避开固定的 header */
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* 面包屑导航样式 */
.woocommerce-breadcrumb {
    padding: 10px 0;
    margin-bottom: 0;
    background: transparent;
    border-bottom: none;
    font-size: 12px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    line-height: 1.4;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 2px 0;
}

.woocommerce-breadcrumb a:hover {
    color: var(--theme-color, #05445e);
    text-decoration: none;
}

.woocommerce-products-header__title {
    padding-left: 10px;
}

/*
///////////////////////////////////////////Head///////////////////////////////////////////
*/

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #333;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    width: 100%;
    background-color: white;
    color: #fff;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-sizing: border-box;
    margin: 0;
    border-bottom: 2px solid var(--theme-color);
    flex: 0 0 auto;
    overflow: hidden;
}

.site-header .container {
    margin: 0;
    padding: 0 40px;
    max-width: 100%;
}

.upper-row {
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.browse-catalog-button {
    border: 0;
    background-color: transparent;
    color: var(--theme-color);
    font-weight: bold;
    font-size: small;
}

#catalog-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 15%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.69s ease;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

#catalog-popup.active {
    transform: translateX(0);
}

#close-catalog-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

.custom-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-logo img {
    top: 20px;
    height: 35px;
    width: 100px;
}

.browse-catalog-list {
    padding: 20px;
    padding-top: 80px;
}

.browse-catalog-list ul {
    list-style: none;
    padding: 0;
}

.browse-catalog-list a {
    text-decoration: none;
}

.browse-catalog-list ul li {
    padding: 5px;
    border-bottom: 1px solid lightgray;
}

.browse-catalog-list p {
    text-decoration: none;
    font-size: 15px;
    color: black;
    font-weight: bold;
    margin: 0;
}

.browse-catalog-list img {
    width: 50px;
    height: 50px;
    padding-right: 5px;
}

.fa-bars {
    color: var(--theme-color);
    font-weight: 900;
}
s
.main-content-wrapper {
    width: 100%;
    padding: 10px 0 0 0;
}

#catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.top-right-information {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.top-right-information a {
    text-decoration: none;
    color: grey;
    font-size: small;
    padding: 10px;
}

.logo-home-wrapper {
    flex-direction: column;
}

.site-logo {
    width: 100%;
    height: 100%;
}

.custom-logo {
    width: 160px;
    height: 50px;
    max-width: 160px !important;
    max-height: 50px;
    object-fit: contain;
    position: absolute;
    top: 4vh;
    transform: translateY(-50%);
}

.site-logo .custom-logo-link {
    justify-content: left;
}

.hamburger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.fa-bars,
.icon-bars {
    color: var(--theme-color);
    fill: var(--theme-color);
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.header-nav-wrapper {
    align-items: center;
    flex-grow: 1;
}

.home-icon {
    margin-left: 15px;
    font-size: 24px;
}

.home-icon a, .cart a, .nav-link {
    font-size: 22px;
    color: #000000 !important;
}

.search-form {
    padding: 8px;
    font-size: 17px;
    display: flex;
    width: 100%;
}

#category-results{
    z-index: 999999;
    min-height: 50px;
    max-height: 400px;
    overflow-y: auto;
    top: 8%;
    position: fixed;
    width: 30vw;
    border-radius: 0 8px 8px 8px;
    background-color: white;
    color: black;
    border: 1px solid var(--border-light);
    display: none;
}

#category-results .category{
    height: auto;
    width: 100%;
    display: block;
    padding: 10px;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--border-light)
}

#category-results .message{
    text-decoration: none;
    font-weight: bold;
    color: black;
    padding: 10px;
    margin-top: auto;
}

#category-results .category:hover{
    border: 1px solid var(--border-accent);
    border-radius: 8px;
}

#category-results img{
    width: 100px;
    z-index: inherit;
}

#category-results a{
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.input-group {
    display: flex;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.header-search input {
    width: 30vw;
    box-sizing: border-box;
    border-radius: 8px !important;
}

.search-field {
    border: 1px solid grey;
    font-size: medium;
    padding-left: 10px;
    padding-right: 70px;
    height: 35px;
}

input[type="search"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.search-clear {
    display: none;
    background-color: transparent;
    border: none;
    color: #999;
    font-size: 14px;
    position: absolute;
    right: 45px;
}

.line-separator {
    display: none;
    width: 1px;
    background-color: #ccc;
    height: 10px;
    position: absolute;
    right: 40px;
}

.search-submit {
    position: absolute;
    right: 6px;
    background: url('img/search.svg') no-repeat center;
    background-size: 16px 16px;
    border: none;
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    cursor: pointer;
}

/* For Chrome, Safari, Edge, and other WebKit-based browsers */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* For Firefox */
input[type="search"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* For Internet Explorer and older versions of Edge */
input[type="search"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.cart {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.home-icon a, .cart a, .nav-link {
    font-size: 22px;
    color: #000000 !important;
}

.fa-shopping-cart {
    color: var(--theme-color);
}

.cart .items {
    background: #fff;
    color: #aaa;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
}

.cart-content {
    display: none;
    position: absolute;
    right: 0;
    top: 90px;
    width: 350px;
    height: 400px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: scroll;
    overflow-x: hidden;
}

.fa-user {
    color: var(--theme-color);
}

.account .nav-link {
    font-size: 15px;
    color: #000000 !important;
    display: flex;
    align-items: center;
    margin-right: 15px;
    align-items: center;
}

.account .nav-link+.nav-link {
    margin-left: 10px;
    margin-right: 0;
}

.fa-sign-out-alt {
    color: var(--theme-color);
}

.header-nav-wrapper-mobile {
    align-items: center;
    background-color: #05445e;
    padding-top: 10px;
}

.filter-toggle-btn {
    display: none;
    background-color: #05445e;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin-top: 10px;
    border: none;
    font-size: 16px;
    position: absolute;
    top: 8vh;
    width: 100%;
    z-index: 1;
}

.header-nav-wrapper-mobile a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

.header-nav-wrapper-mobile a i,
.header-nav-wrapper-mobile i.fas,
.header-nav-wrapper-mobile i.fa {
    color: white !important;
}

.site-header .navbar-nav .nav-item:hover .nav-link {
    color: black;
    /* 鼠标悬停时将文本颜色变为黑色 / Change text color to black on hover */
    text-decoration: underline;
    /* 鼠标悬停时添加下划线效果 / Add underline effect on hover */
}

.header-nav-wrapper-mobile a:hover {
    background-color: var(--gray-1);
    /* 鼠标悬停时背景颜色变为浅灰色 / Change background color to light gray on hover */
    color: white;
    /* 鼠标悬停时文本颜色变为黑色 / Change text color to white on hover */
}

.header-nav-wrapper-mobile a:hover i,
.header-nav-wrapper-mobile a:hover i.fas,
.header-nav-wrapper-mobile a:hover i.fa {
    color: white !important;
}

.browse-catalog-list ul :hover {
    background-color: var(--bg-highlight);
}

#email-sendButton.hover {
    background-color: var(--green-1);
}

.close-email:hover {
    color: black;
}

.top-right-information :hover {
    text-decoration: underline;
}

.search-clear:hover {
    color: #333;
    /* Darken the clear button text on hover */
}

.cart-content .mini-cart-item :hover {
    background-color: #edf6f5;
}

.button.wc-forward:hover,
.woocommerce-Button.wc-forward.button:hover {
    background-color: #007cba !important;
    /* Darker background on hover */
}

/*
///////////////////////////////////////////Footer///////////////////////////////////////////
*/

#site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 0;
    margin: 0;
}

#site-footer .footer-menu {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#site-footer .footer-menu li {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0 10px;
    position: relative;
}

#site-footer .footer-menu a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

#site-footer .footer-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #000000;
}

.emailmodal {
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#site-footer .footer-menu li:hover {
    background-color: #fbf3cd;
    /* 鼠标悬停时背景颜色变为浅黄色 / Change background color to light yellow on hover */
}

/*
///////////////////////////////////////////Account Page///////////////////////////////////////////
*/

#account-section{
    margin-bottom: 50px;
}

.woocommerce-MyAccount-content.center-content {
    max-width: 800px;
    margin: 0 auto;
    float: none;
    padding: 2rem;
}

/*
///////////////////Navigation Bar (On the left) /////////////////////
*/



.woocommerce-MyAccount-navigation {
    font-family: var(--theme-nav-font-family);
    background-color: var(--theme-nav-bg-sidebar);
    padding: 25px 20px;
    border-radius: var(--theme-nav-border-radius);
    box-shadow: var(--theme-nav-shadow-sm);
    display: flex;
    position: sticky;
    top: 150px; /* 👈 This is required */
    flex-direction: column;
    gap: 20px;
    z-index: 100; /* Optional: keep it above other content */
}

.woocommerce-MyAccount-navigation .avatar-wrapper {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--theme-nav-border-light);
}

.woocommerce-MyAccount-navigation .avatar-wrapper img.avatar {
    border-radius: 50%; /* Circular avatar */
    border: 3px solid var(--theme-nav-accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 5px; /* Space between nav items */
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--theme-nav-text-secondary);
    border-radius: var(--theme-nav-border-radius);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    position: relative; /* For active indicator */
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--theme-nav-bg-item-hover);
    color: var(--theme-nav-text-primary);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--theme-nav-bg-item-active);
    color: var(--theme-nav-color); /* Use main theme color for active text */
    font-weight: 600;
}

/* Optional: Add a visual indicator for the active item, like a left border */
.woocommerce-MyAccount-navigation ul li.is-active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background-color: var(--theme-nav-accent-color);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}


.woocommerce-MyAccount-navigation ul li a i.fas {
    margin-right: 12px;
    font-size: 1.1em;
    width: 20px; /* Fixed width for icon alignment */
    text-align: center;
    color: var(--theme-nav-accent-color); /* Default icon color */
}

.woocommerce-MyAccount-navigation ul li.is-active a i.fas {
    color: var(--theme-nav-color); /* Icon color for active item */
}


.woocommerce-MyAccount-navigation .custom-logout-link {
    margin-top: auto; /* Pushes logout to the bottom if nav is in a flex container with height */
    padding-top: 20px;
    border-top: 1px solid var(--theme-nav-border-light);
}

.woocommerce-MyAccount-navigation .nav-logout-button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background-color: var(--theme-nav-color);
    color: var(--theme-nav-text-on-dark-bg) !important; /* Important to override potential specificity */
    text-align: center;
    text-decoration: none;
    border-radius: var(--theme-nav-border-radius);
    font-weight: 500;
    transition: background-color 0.2s ease;
    box-shadow: var(--theme-nav-shadow-sm);
}
.woocommerce-MyAccount-navigation .nav-logout-button i.fas {
    margin-right: 8px;
}


.woocommerce-MyAccount-navigation .nav-logout-button:hover {
    background-color: var(--theme-nav-color-hover);
    color: var(--theme-nav-text-on-dark-bg) !important;
}

/* Responsive adjustments for smaller screens if navigation is vertical */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        padding: 15px 12px;
        position: relative;
        top: 0;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .woocommerce-MyAccount-navigation ul li a i.fas {
        font-size: 1em;
        width: 18px;
        margin-right: 10px;
    }
    .woocommerce-MyAccount-navigation .avatar-wrapper {
        padding-bottom: 12px;
        margin-bottom: 10px;
    }
    .woocommerce-MyAccount-navigation .avatar-wrapper img.avatar {
        width: 64px;
        height: 64px;
        border-width: 2px;
    }
    .woocommerce-MyAccount-navigation .avatar-wrapper > div {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    .woocommerce-MyAccount-navigation .avatar-wrapper > div:last-child {
        font-size: 0.8rem;
    }
    .woocommerce-MyAccount-navigation .nav-logout-button {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}



/*
///////////////////Account Dashboard/////////////////////
*/


.woocommerce-MyAccount-content { /* Target the main content area of WooCommerce my account page */
    font-family: var(--dashboard-font-family);
    background-color: var(--dashboard-page-bg); /* Optional: Set background for the whole content area */
    padding: 20px; /* Optional: Add some padding around the dashboard */
    border-radius: 10px;
    height: 100%;
}

.woocommerce-MyAccount-content::-webkit-scrollbar {
    display: none;
}

.woocommerce-MyAccount-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dashboard-primary-text);
    margin-bottom: 30px;
    text-align: left;
}

.account-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.account-card {
    background-color: var(--dashboard-card-bg);
    border-radius: var(--dashboard-border-radius);
    padding: 25px;
    box-shadow: var(--dashboard-card-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    box-shadow: var(--dashboard-card-hover-shadow);
    transform: translateY(-3px);
}

.account-card-label {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dashboard-primary-text);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--dashboard-border-color);
    padding-bottom: 15px;
}

.account-card-label .fas { /* Font Awesome icon styling */
    margin-right: 10px;
    color: var(--dashboard-accent-color);
    font-size: 1.2rem;
}

.account-card-details {
    font-size: 0.95rem;
    color: var(--dashboard-secondary-text);
    line-height: 1.6;
    flex-grow: 1; /* Allows footer content (if any) to stick to bottom */
}

/* Styling for Recent Orders Card */
.account-card-details .woocommerce-orders-table__row, /* Adapting to potential WC classes */
.account-card-details .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    
}
.account-card-details .order-item:last-child {
    border-bottom: none;
}
.account-card-details .order-item:hover {
    background-color: #f9f9f9;
}

.account-card-details .order-item a {
    text-decoration: none;
    color: var(--dashboard-accent-color);
    font-weight: 500;
    display: flex; /* To align order ID and arrow */
    justify-content: space-between;
    width: 100%; /* Make the link take full width */
}
.account-card-details .order-item a:hover {
    text-decoration: underline;
}
.account-card-details .order-item .order-number {
    color: var(--dashboard-primary-text);
}
.account-card-details .order-item .order-total {
    color: var(--dashboard-secondary-text);
    font-weight: 600;
}
 .account-card-details .order-item .view-order-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}
.account-card-details .order-item a:hover .view-order-arrow {
    transform: translateX(3px);
}

.view-order-payment{
    display: flex;
    justify-content: center;
}
.view-order-payment a{
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: var(--dashboard-accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-order-payment a:hover{
    background-color: #0056b3; /* Darker shade of accent color */
}

.view-order-payment a .fas{
    margin-right: 5px;
}


.account-card-details .no-orders-message {
    color: var(--dashboard-light-text);
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}

.order-status-pending { background-color: yellow; }
.order-status-pending:hover { background-color: #ffffcc; }

.order-status-processing { background-color: lightgreen; color: white; }
.order-status-processing:hover { background-color: #90ee90; }

.order-status-on-hold { background-color: orange; }
.order-status-on-hold:hover { background-color: #ffcc80; }

.order-status-completed { background-color: transparent; }
.order-status-completed:hover { background-color: #f8f8f8; }

.order-status-cancelled,
.order-status-failed { background-color: red; color: white; }
.order-status-cancelled:hover,
.order-status-failed:hover { background-color: #ff6666; }

.order-status-refunded { background-color: purple; color: white; }
.order-status-refunded:hover { background-color: #b266ff; }

.order-status-trash { background-color: darkgray; }
.order-status-trash:hover { background-color: #a9a9a9; }


/* Styling for Total Card */
.account-card-details .total-spent {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dashboard-accent-color);
    margin-bottom: 8px;
}
.account-card-details .order-count-info {
    font-size: 0.9rem;
    color: var(--dashboard-light-text);
}

/* Styling for Addresses Card */
.account-card-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-primary-text);
    margin-top: 0;
    margin-bottom: 10px;
}
.account-card-details address { /* WooCommerce often wraps address in <address> */
    font-style: normal;
    white-space: pre-line; /* Respects line breaks in formatted address */
}
.account-card-details .no-address-message {
    color: var(--dashboard-light-text);
    font-style: italic;
}


/* Styling for Account Details Card */
.account-detail-item {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
}
.account-detail-item strong {
    font-weight: 600;
    color: var(--dashboard-primary-text);
    margin-right: 8px;
    min-width: 60px; /* Adjust as needed for alignment */
}
.account-detail-item span {
    color: var(--dashboard-secondary-text);
}

/* Link to edit account details */
.edit-account-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: var(--dashboard-accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.edit-account-link:hover {
    background-color: #0056b3; /* Darker shade of accent color */
}
.edit-account-link .fas {
    margin-right: 5px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .account-dashboard {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
        gap: 15px;
    }
    .woocommerce-MyAccount-content {
        padding: 15px;
    }
    .woocommerce-MyAccount-content.center-content {
        padding: 1rem;
        max-width: 100%;
    }
    .woocommerce-MyAccount-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .account-card {
        padding: 18px;
    }
    .account-card-label {
        font-size: 0.95rem;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    .account-card-label .fas {
        font-size: 1.1rem;
        margin-right: 8px;
    }
    .account-card-details {
        font-size: 0.9rem;
    }
    .account-card-details .total-spent {
        font-size: 1.8rem;
    }
    .account-card-details .order-item {
        padding: 10px 5px;
        flex-wrap: wrap;
    }
    .account-card-details .order-item .order-number {
        font-size: 0.9rem;
        flex: 1 1 100%;
        margin-bottom: 5px;
    }
    .account-card-details .order-item .order-total {
        font-size: 0.95rem;
    }
    .account-card-details .order-item .view-order-arrow {
        margin-left: auto;
    }
    .account-detail-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    .account-detail-item strong {
        margin-bottom: 4px;
        min-width: auto;
    }
    .edit-account-link {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        margin-top: 15px;
    }
    #account-section {
        margin-bottom: 30px;
    }
}

/* 
/////////////////////////////////////////// Orders ////////////////////////////////
*/
.account-orders-table{
    background-color: white;
}
/*
///////////////////////////////////////////Login Page///////////////////////////////////////////
*/
.login-wrapper{
    display: flex;
    justify-content: center;
}
.login-container{
    width: 50%;
}

.login-container form{
    background-color: whitesmoke;
    border-color: var(--border-accent) !important;
}

.login-container button {
    border-radius: 8px !important;
}

.register-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.2); /* Optional white tint */
    backdrop-filter: blur(8px); /* The actual blur effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    z-index: 999; /* Make sure it's on top */
}

.woocommerce-register-modal{
    position: absolute;
    z-index: 9999;
    width: 20%;
}

.woocommerce-register-modal-content{
    position: absolute;
    background-color: whitesmoke;
    z-index: 9999;
    width: 100%;
}

form.woocommerce-form.woocommerce-form-register.register {
    margin: 0 !important;
    border-color: var(--border-accent) !important;
}

form.woocommerce-form.woocommerce-form-register.register input{
    height: 30px;
}

form.woocommerce-form.woocommerce-form-register.register button{
    border-radius: 8px !important;
}

.woocommerce-register-close{
    position: absolute;
    right: 5%;
    cursor: pointer;
    font-size: x-large;
    height: auto;
}


/* 
/////////////////////////////// Addresses ////////////////////////////////
*/

/* General page styling within woocommerce_account_content */
.woocommerce-account .woocommerce-MyAccount-content {
    font-family: var(--theme-address-font-family);
}

/* Style the introductory paragraph */
.woocommerce-MyAccount-content > p:first-child {
    font-size: 1rem; /* Or 16px */
    color: var(--theme-address-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    padding: 15px 20px;
    background-color: var(--theme-address-bg-card);
    border-radius: var(--theme-address-border-radius);
    box-shadow: var(--theme-address-shadow-md);
}

.woocommerce-Addresses { /* This is the .col2-set addresses container */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); /* Responsive columns */
    gap: 30px; /* Space between address cards */
}

.woocommerce-Addresses .woocommerce-Address { /* Individual address card */
    background-color: var(--theme-address-bg-card) !important;
    border-radius: var(--theme-address-border-radius);
    box-shadow: var(--theme-address-shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures border radius is respected by children */
}

.woocommerce-Address:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-address-shadow-hover);
}

.woocommerce-Address-title { /* Header of the address card */
    background-color: var(--theme-address-bg-card-header);
    padding: 20px 25px;
    border-bottom: 1px solid var(--theme-address-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-top-left-radius and border-top-right-radius are inherited due to overflow:hidden on parent */
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.2rem; /* Or 18px-20px */
    font-weight: 600;
    color: var(--theme-address-color-primary);
    display: flex;
    align-items: center;
}

.woocommerce-Address-title h3 i.fas {
    margin-right: 12px;
    color: var(--theme-address-color-accent);
    font-size: 1.1em; /* Relative to h3 font size */
}

.woocommerce-Address-title .edit { /* Edit/Add link */
    font-size: 0.9rem; /* Or 14px */
    font-weight: 500;
    color: var(--theme-address-color-accent);
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid var(--theme-address-color-accent);
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    display: inline-flex; /* To align icon and text */
    align-items: center;
}

.woocommerce-Address-title .edit:hover {
    background-color: var(--theme-address-color-accent);
    color: #fff; /* White text on accent background */
    transform: translateY(-1px);
}

.woocommerce-Address-title .edit i.fas {
    margin-right: 6px;
}

.woocommerce-Address address {
    padding: 25px;
    font-style: normal;
    line-height: 1.7;
    color: var(--theme-address-text-secondary);
    flex-grow: 1; /* Ensures address block takes available space */
    white-space: pre-line; /* Respects newlines from formatted address */
}

.woocommerce-Address address.is-empty {
    text-align: center;
    font-style: italic;
    color: var(--theme-address-text-light);
    padding: 40px 25px; /* More padding for empty state */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.woocommerce-Address address.is-empty::before { /* Optional: Add an icon for empty state */
    font-family: "Font Awesome 5 Free"; /* Ensure correct Font Awesome family */
    font-weight: 900; /* For solid icons */
    content: "\f071"; /* Example: fa-exclamation-triangle */
    font-size: 2rem;
    color: var(--theme-address-text-light);
    margin-bottom: 15px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-content > p:first-child {
        margin-bottom: 20px;
        padding: 15px;
    }
    .woocommerce-Addresses {
        gap: 20px;
    }
    .woocommerce-Address-title {
        padding: 15px 20px;
        flex-direction: column; /* Stack title and button on small screens */
        align-items: flex-start;
        gap: 10px;
    }
    .woocommerce-Address-title h3 {
        font-size: 1.1rem;
    }
    .woocommerce-Address-title .edit {
        font-size: 0.85rem;
        padding: 7px 12px;
        align-self: flex-start; /* Align button to the start */
    }
    .woocommerce-Address address {
        padding: 20px;
    }
    .woocommerce-Address address.is-empty {
        padding: 30px 20px;
    }
}

/*
///////////////////////////////////////////Cart Page///////////////////////////////////////////
*/


.woocommerce-cart-form, .cart-collaterals {
    font-family: var(--theme-cart-font-family);
}

.woocommerce-cart-form-wrapper{
    max-height: 87vh;
    overflow-y: auto;
}

/* Overall layout for cart and collaterals */
.woocommerce-cart-form-container, /* Custom wrapper for cart form */
.cart-collaterals-container { /* Custom wrapper for collaterals */
    background-color: var(--theme-cart-bg-card);
    padding: 25px;
    border-radius: var(--theme-cart-border-radius);
    box-shadow: var(--theme-cart-shadow-md);
    margin-bottom: 30px;
}

/* Making the cart table container scrollable */
.shop_table_responsive_wrapper { /* Add this wrapper around the table if not present */
    max-height: 50vh; /* Adjust as needed, e.g., 400px or 60vh */
    overflow-y: auto;
    border-radius: var(--theme-cart-border-radius-sm);
    margin-bottom: 20px; /* Space before actions row if it's outside */
}

.shop_table.cart {
    display: table;
    width: 100%;
    border-collapse: separate; /* Allows for space between cells if needed, or use collapse with borders */
    border-spacing: 0;
    margin-bottom: 0; /* Removed margin as wrapper handles it */
}

.shop_table.cart thead {
    background-color: var(--theme-cart-bg-table-header);
    position: sticky; /* Make header sticky within scrollable container */
    top: 0;
    z-index: 10;
}

.shop_table.cart th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--theme-cart-text-primary);
    border-bottom: 2px solid var(--theme-cart-border-light);
}
.shop_table.cart th.product-remove,
.shop_table.cart th.product-thumbnail {
    width: 50px; /* Adjust for icons/small thumbnails */
    text-align: center;
}
 .shop_table.cart th.product-quantity {
    width: 120px; /* Adjust for quantity input */
    text-align: center;
}
.shop_table.cart th.product-price,
.shop_table.cart th.product-subtotal {
    text-align: right;
    width: 100px;
}


.shop_table.cart tbody tr {
    border-bottom: 1px solid var(--theme-cart-border-light);
}
.shop_table.cart tbody tr:last-child {
    border-bottom: none;
}
.shop_table.cart tbody tr:hover {
    background-color: #fdfdfd; /* Very subtle hover */
}

.shop_table.cart td {
    padding: 15px 12px;
    vertical-align: middle;
    color: var(--theme-cart-text-secondary);
}

.shop_table.cart td.product-thumbnail img {
    max-width: 60px;
    height: auto;
    border-radius: var(--theme-cart-border-radius-sm);
    border: 1px solid var(--theme-cart-border-light);
    box-shadow: var(--theme-cart-shadow-sm);
}

.shop_table.cart td.product-name a {
    color: var(--theme-cart-color-primary);
    text-decoration: none;
    font-weight: 500;
}
.shop_table.cart td.product-name a:hover {
    color: var(--theme-cart-color-primary-hover);
    text-decoration: underline;
}

.shop_table.cart td.product-name .category{
    font-size: small;
}
.shop_table.cart td.product-name .variation dt,
.shop_table.cart td.product-name .variation dd {
    font-size: 0.85em;
    color: var(--theme-cart-text-light);
}
.shop_table.cart td.product-name .variation dd p { margin-bottom: 0; }

.shop_table.cart td.product-price,
.shop_table.cart td.product-subtotal {
    text-align: right;
    font-weight: 500;
    color: var(--theme-cart-text-primary);
}

.shop_table.cart td.product-remove .remove {
    color: var(--theme-cart-danger-color);
    text-decoration: none;
    font-size: 1.4em; /* Make the 'x' larger */
    font-weight: bold;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: inline-block;
}
.shop_table.cart td.product-remove .remove:hover {
    color: var(--theme-cart-text-on-primary);
    background-color: var(--theme-cart-danger-color-hover);
}

/* Quantity Input Styling */
.shop_table.cart .quantity .qty {
    width: 60px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid var(--theme-cart-border-input);
    border-radius: var(--theme-cart-border-radius-sm);
    font-family: var(--theme-cart-font-family);
    font-size: 1rem;
    color: var(--theme-cart-text-primary);
    transition: border-color 0.2s ease;
    box-shadow: inset var(--theme-cart-shadow-sm);
}
.shop_table.cart .quantity .qty:focus {
    border-color: var(--theme-cart-color-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--theme-cart-color-accent), 0.2);
}
.shop_table.cart td.product-quantity { text-align: center; }


/* Actions row (Coupon and Update Cart) */
.shop_table.cart tr.actions {
    background-color: var(--theme-cart-bg-card); /* Keep actions visible if table scrolls */
    border-top: 1px solid var(--theme-cart-border-light);
}
.shop_table.cart td.actions {
    padding: 20px 15px;
    text-align: right; /* Align buttons to the right */
    display: flex; /* Use flex for better alignment of coupon and buttons */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.shop_table.cart .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1; /* Allow coupon section to take available space */
}

.shop_table.cart .coupon .input-text {
    padding: 10px 12px;
    border: 1px solid var(--theme-cart-border-input);
    border-radius: var(--theme-cart-border-radius-sm);
    font-family: var(--theme-cart-font-family);
    font-size: 0.95rem;
    min-width: 180px;
    transition: border-color 0.2s ease;
}
 .shop_table.cart .coupon .input-text:focus {
    border-color: var(--theme-cart-color-accent);
    outline: none;
}

.woocommerce-cart-form .button,
.wc-proceed-to-checkout .button { /* General button styling */
    background-color: var(--theme-cart-color-primary);
    color: var(--theme-cart-text-on-primary) !important; /* Ensure text color */
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: var(--theme-cart-border-radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--theme-cart-shadow-sm);
}
.woocommerce-cart-form .button:hover,
.wc-proceed-to-checkout .button:hover {
    background-color: var(--theme-cart-color-primary-hover);
    box-shadow: var(--theme-cart-shadow-md);
}
.woocommerce-cart-form .button[name="apply_coupon"] {
    background-color: var(--theme-cart-color-accent);
}
.woocommerce-cart-form .button[name="apply_coupon"]:hover {
    background-color: #2980b9; /* Darker accent */
}
.woocommerce-cart-form .button[name="update_cart"] {
    margin-top: 10px;
    background-color: var(--theme-cart-color-accent);
    float: right;
}

.woocommerce-cart-form .button[name="update_cart"]:hover{
    background-color: #2980b9;
}

.woocommerce-cart-form .button[name="update_cart"]:disabled{
    background-color: #e9e6ed;
}

.woocommerce-cart-form .processing-statement{
    font-size: small;
    margin-top: 10px;
}


/* Cart Collaterals (Totals) */
.cart-collaterals {
    margin-top: 0; /* Remove top margin if wrapped */
}
.cart_totals {
    width: 100%; /* Ensure it takes full width of its container */
}
.cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-cart-text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theme-cart-border-light);
}
.cart_totals table.shop_table {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
    padding: 12px 0;
    border-bottom: 1px dashed var(--theme-cart-border-light);
    color: var(--theme-cart-text-secondary);
}
.cart_totals table.shop_table tr:last-child th,
.cart_totals table.shop_table tr:last-child td {
    border-bottom: none;
}
.cart_totals table.shop_table th {
    font-weight: 500;
    text-align: left;
}
.cart_totals table.shop_table td {
    text-align: right;
}
.cart_totals .order-total th,
.cart_totals .order-total td {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--theme-cart-text-primary);
}
.cart_totals .order-total td .woocommerce-Price-amount {
    color: var(--theme-cart-color-primary);
}

.wc-proceed-to-checkout {
    margin-top: 25px;
    text-align: right; /* Align button to the right */
}
.wc-proceed-to-checkout .button {
    font-size: 1.1rem;
    padding: 12px 25px;
}

.free-shipping-notice{
    background-color: rgb(255, 255, 127);
    padding: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shop_table_responsive_wrapper {
        max-height: 60vh; /* Allow more height on mobile if needed */
    }
    /* WooCommerce's default responsive table handles much of this,
       but we can adjust padding and font sizes if needed. */
    .shop_table.cart th, .shop_table.cart td {
        padding: 10px 8px;
    }
    .shop_table.cart td.actions {
        flex-direction: column;
        align-items: stretch; /* Make coupon and update cart full width */
    }
    .shop_table.cart .coupon {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .shop_table.cart .coupon .input-text {
        width: 100%;
        margin-bottom: 10px;
    }
    .shop_table.cart .coupon .button,
    .shop_table.cart td.actions > .button {
        width: 100%;
        justify-content: center;
    }
    .cart-collaterals-container {
        padding: 20px;
    }
    .cart_totals h2 {
        font-size: 1.3rem;
    }
}

/* //////////////////////////////////////// Proceed-to-checkout page /////////////////////////////////// */


.woocommerce-checkout {
    font-family: var(--theme-checkout-font-family);
    color: var(--theme-checkout-text-secondary);
}

/* Main layout containers for checkout sections */
.checkout-section-card {
    height: 100%;
    background-color: var(--theme-checkout-bg-card);
    padding: 30px;
    border-radius: var(--theme-checkout-border-radius);
    box-shadow: var(--theme-checkout-shadow-md);
    margin-bottom: 30px;
}

/* Customer Details (Billing & Shipping) */
#customer_details.col2-set {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column */
    gap: 30px;
}
/* Apply 2-column layout for customer details on larger screens */
@media (min-width: 992px) {
    #customer_details.col2-set {
        grid-template-columns: 1fr 1fr;
    }
}

#customer_details .col-1,
#customer_details .col-2 {
    width: 100%; /* Override default WC widths */
}

/* Scrollable container for customer details if it gets too long */
.customer-details-scrollable-wrapper {
    height: 100%; /* Adjust as needed */
    padding-right: 15px; /* For scrollbar */
    margin-right: -15px; /* Offset for padding */
}

.checkout-main-content{
    max-height: 80vh;
    padding-right: 15px; /* For scrollbar */
    margin-right: -15px; /* Offset for padding */
}


.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-checkout-text-primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theme-checkout-border-light);
    display: flex;
    align-items: center;
}
.woocommerce-billing-fields h3 i,
.woocommerce-shipping-fields h3 i,
#order_review_heading i {
    margin-right: 10px;
    color: var(--theme-checkout-color-accent);
}

/* Form Field Styling */
.woocommerce .form-row {
    padding: 0;
    margin-bottom: 20px;
}
.woocommerce .form-row label {
    font-weight: 500;
    color: var(--theme-checkout-text-primary);
    margin-bottom: 8px;
    display: block;
}
.woocommerce .form-row label .required {
    color: var(--theme-checkout-text-error);
    font-weight: bold;
    margin-left: 4px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
    background-color: var(--theme-checkout-bg-input);
    border: 1px solid var(--theme-checkout-border-input);
    border-radius: var(--theme-checkout-border-radius-sm);
    padding: 10px 12px;
    color: var(--theme-checkout-text-secondary);
    width: 100%;
    box-shadow: inset var(--theme-checkout-shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
    height: auto; /* For select2 */
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .select2-container--open .select2-selection--single {
    border-color: var(--theme-checkout-color-accent);
    box-shadow: 0 0 0 2px rgba(var(--theme-checkout-color-accent), 0.2); /* Focus ring */
    outline: none;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--theme-checkout-text-secondary) transparent transparent transparent;
}
.woocommerce .select2-dropdown {
     border-radius: var(--theme-checkout-border-radius-sm);
     border-color: var(--theme-checkout-border-input-focus);
     box-shadow: var(--theme-checkout-shadow-sm);
}


.woocommerce #ship-to-different-address {
    margin-bottom: 20px;
}
.woocommerce #ship-to-different-address label {
    font-weight: 500;
    display: flex;
    align-items: center;
}
 .woocommerce #ship-to-different-address input {
    margin-right: 8px;
    width: auto; /* Override WC default */
}

/* Scrollable container for order review if it gets too long */
.order-review-scrollable-wrapper {
    max-height: 100%; /* Adjust as needed */
    overflow-y: auto;
    /* padding: 1px;  To contain box-shadow of table if needed */
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background-color: var(--theme-checkout-bg-card); /* Table itself on card bg */
}
.woocommerce-checkout-review-order-table thead th {
    font-weight: 600;
    color: var(--theme-checkout-text-primary);
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid var(--theme-checkout-border-light);
}
.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--theme-checkout-border-light);
    vertical-align: middle;
}
.woocommerce-checkout-review-order-table tbody tr:last-child td,
.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
}
.woocommerce-checkout-review-order-table .product-name .wc-gzd-product-name-suffix, /* Compatibility with Germanized */
.woocommerce-checkout-review-order-table .product-name .variation dt,
.woocommerce-checkout-review-order-table .product-name .variation dd {
    font-size: 0.85em;
    color: var(--theme-checkout-text-light);
    font-weight: normal;
}
.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 500;
}
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--theme-checkout-text-primary);
}
.woocommerce-checkout-review-order-table tfoot .order-total td .woocommerce-Price-amount {
    color: var(--theme-checkout-color-primary);
}

/* Payment Methods */
#payment {
    background-color: var(--theme-checkout-bg-order-review); /* Slightly different background for payment section */
    border-radius: var(--theme-checkout-border-radius);
    padding: 25px;
    border: 1px solid var(--theme-checkout-border-light);
}
#payment .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}
#payment .wc_payment_method {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--theme-checkout-border-light);
}
#payment .wc_payment_method:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
#payment .wc_payment_method label {
    font-weight: 500;
    color: var(--theme-checkout-text-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
}
#payment .wc_payment_method input[type="radio"] {
    margin-right: 10px;
    width: auto;
}
#payment .wc_payment_method img {
    max-height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}
#payment .payment_box {
    background-color: var(--theme-checkout-bg-card);
    padding: 15px;
    margin-top: 10px;
    border-radius: var(--theme-checkout-border-radius-sm);
    border: 1px solid var(--theme-checkout-border-light);
    font-size: 0.9em;
    color: var(--theme-checkout-text-secondary);
}
#payment .payment_box p {
    margin-bottom: 0.5em;
}
#payment .payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Button */
.woocommerce-checkout-payment .place-order {
    margin-top: 20px;
}
.woocommerce-checkout-payment .button#place_order {
    background-color: var(--theme-checkout-color-primary);
    color: var(--theme-checkout-text-on-primary) !important;
    padding: 12px 25px;
    text-decoration: none;
    border: none;
    border-radius: var(--theme-checkout-border-radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%; /* Make button full width */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--theme-checkout-shadow-sm);
}
.woocommerce-checkout-payment .button#place_order:hover {
    background-color: var(--theme-checkout-color-primary-hover);
    box-shadow: var(--theme-checkout-shadow-md);
}
.woocommerce-checkout-payment .button#place_order:disabled {
    background-color: var(--theme-checkout-border-medium);
    cursor: not-allowed;
}
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 20px;
    font-size: 0.9em;
}

/* WooCommerce Notices */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background-color: var(--theme-checkout-bg-card) !important;
    border-top-color: var(--theme-checkout-color-accent) !important; /* Example, adjust per notice type */
    color: var(--theme-checkout-text-primary) !important;
    padding: 15px 20px !important;
    border-radius: var(--theme-checkout-border-radius-sm) !important;
    box-shadow: var(--theme-checkout-shadow-sm) !important;
    margin-bottom: 25px !important;
}
.woocommerce-error { 
    border-top-color: var(--theme-checkout-text-error) !important;
    padding-left: 50px !important;
}

.woocommerce-info { 
    border-top-color: var(--theme-checkout-color-accent) !important; 
    padding-left: 50px !important;
}
.woocommerce-info::before{
    position: absolute;
}
.woocommerce-message { 
    border-top-color: #2ECC71 !important; /* Green for success */ 
    padding-left: 50px !important;
}

.woocommerce-message::before{
    position: absolute; /* or absolute, if currently absolute */
}

.woocommerce-form-coupon-toggle{
    display:none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .checkout-section-card {
        padding: 20px;
    }
    .customer-details-scrollable-wrapper {
        max-height: none; /* Disable scroll on mobile if preferred, or adjust height */
        padding-right: 0;
        margin-right: 0;
    }
     .order-review-scrollable-wrapper {
        max-height: none; /* Disable scroll on mobile if preferred, or adjust height */
    }
}
@media (max-width: 768px) {
    #customer_details.col2-set {
        gap: 0; /* Remove gap if stacking directly */
    }
    #customer_details .col-1,
    #customer_details .col-2 {
        margin-bottom: 30px; /* Space between stacked billing/shipping */
    }
    #customer_details .col-2:last-child {
        margin-bottom: 0;
    }
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    #order_review_heading {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    .woocommerce-checkout-payment .button#place_order {
        font-size: 1rem;
        padding: 12px 20px;
    }
}


/*
///////////////////////////////////////////Media///////////////////////////////////////////
*/


/* 平板响应式 (768px - 1024px) */
@media (max-width: 1024px) {
    .site-main {
        padding-left: 25px;
        padding-right: 25px;
    }

    .single-product-body {
        padding: 15px 0;
    }

    .single-product-body > .row {
        gap: 25px;
    }

    .single-product-big-images img {
        width: 350px;
        height: 350px;
    }

    .single-product-right-column {
        max-width: 450px;
    }
}

/* 小平板/大手机 (430px - 768px) */
@media (max-width: 768px) {
    .site-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .single-product-body-title {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .single-product-breadcrumb {
        text-align: left;
    }

    .single-product-breadcrumb .woocommerce-breadcrumb {
        justify-content: flex-start;
        font-size: 11px;
    }

    .single-product-body-title h1 {
        font-size: 22px;
    }

    .single-product-body {
        padding: 15px 0;
    }

    .single-product-body > .row {
        flex-direction: column;
        gap: 20px;
    }

    .single-product-left-column {
        width: 100%;
    }

    .single-product-left-column > .row {
        justify-content: center;
    }

    .single-product-big-images {
        max-height: none;
    }

    .single-product-big-images img {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1/1;
    }

    .single-product-right-column {
        max-width: 100%;
        width: 100%;
    }

    .product-details-top .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .qty-and-add-to-order-button {
        width: 100%;
        justify-content: flex-start;
    }

    .add-to-cart-button {
        max-width: 100%;
    }

    .single-product-attribute-table .attribute-name,
    .single-product-attribute-table .attribute-value {
        width: auto;
    }
}

/* 手机响应式 (max-width: 430px) */

@media (max-width: 767.98px) {

    .browse-catalog-button-container {
        display: none;
    }

    .header-grid {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .hamburger-menu {
        display: block;
        color: black;
        align-content: center;
        margin-left: auto;
        /* Push hamburger icon to the right */
        flex-shrink: 0;
        /* Prevent shrinking of the hamburger icon */
    }

    .logo-home-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        /* Make sure the logo container takes available space */
    }
    
    .site-logo {
        display: flex;
        align-items: center;
        height: auto;
    }

    .header-actions {
        display: none;
    }

    .header-search {
        margin-top: 10px;
    }

    .header-nav-wrapper-mobile {
        display: none;
    }

    .header-nav-wrapper-mobile.active {
        display: flex;
    }

    .site-header {
        height: unset;
        padding: 10px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-logo img,
    .custom-logo-link img,
    .site-logo .custom-logo {
        width: 120px !important;
        height: 40px !important;
        max-width: 120px !important;
        max-height: 40px !important;
        object-fit: contain;
        position: relative !important;
        top: auto !important;
        transform: none !important;
        /* Limit the size of the logo on mobile */
    }

    .header-search input {
        display: flex;
        align-items: center;
        /* Align search input and button vertically */
        width: 100%;
        /* Make sure the search bar takes full width */
    }

    .header-search form {
        align-items: center;
        /* Align items vertically in the center */
        width: 100%;
        /* Ensure full width of the container */
    }

    .search-bar-btn i {
        font-size: 16px;
        /* Adjust icon size */
    }

    .header-search .btn{
        color: white;
    }


    .single-product-gallery-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .subcategory-details {
        flex-direction: column;
    }

    .subcategory-details img {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100%;
    }
}

@media(max-width:768px) {
    .account .nav-link {
        font-size: 15px !important;
    }

    .woocommerce-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce-info .button.wc-forward {
        margin-top: 10px;
    }

    .woocommerce-Addresses {
        flex-direction: column;
    }

    .woocommerce-MyAccount-content .form-row-first,
    .woocommerce-MyAccount-content .form-row-last {
        width: 100%;
        margin-right: 0;
    }

    .woocommerce-form-row {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .woocommerce-EditAccountForm input {
        width: 100%;
    }

    /* My Account page responsive styles */
    .woocommerce-MyAccount-navigation {
        position: relative;
        top: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .woocommerce-MyAccount-content {
        width: 100%;
        padding: 15px;
    }
    
    .woocommerce-MyAccount-content.center-content {
        padding: 1rem;
        max-width: 100%;
    }
    
    /* Account orders table responsive */
    .account-orders-table {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-orders-table table {
        min-width: 100%;
        font-size: 0.9rem;
    }
    
    .account-orders-table th,
    .account-orders-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .account-orders-table .woocommerce-orders-table__cell-order-actions {
        white-space: normal;
        min-width: 0;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .account-orders-table .woocommerce-orders-table__cell-order-actions .button,
    .account-orders-table .woocommerce-orders-table__cell-order-actions .woocommerce-button {
        padding: 6px 10px;
        font-size: 0.8rem;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
    }
    
    /* Account downloads responsive */
    .account-downloads {
        margin-top: 20px;
    }
    
    .account-downloads .woocommerce-Message {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .account-downloads .woocommerce-Message .button {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* Payment methods table responsive */
    .account-payment-methods-table {
        margin: 0 -15px;
        padding: 0 15px;
        margin-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-payment-methods-table table {
        min-width: 100%;
        font-size: 0.9rem;
    }
    
    .account-payment-methods-table th,
    .account-payment-methods-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .account-payment-methods-table .button {
        padding: 6px 12px;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .account-payment-methods-table .button:last-child {
        margin-bottom: 0;
    }
    
    .account-edit-account {
        margin-top: 20px;
    }
    
    .account-edit-account .button {
        width: 100%;
    }

    /* Login container responsive styles */
    #customer_login {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .login-wrapper {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .login-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .login-container form {
        padding: 20px 15px;
        margin: 0;
    }
    
    .login-container input {
        height: 44px;
        font-size: 16px; /* 防止 iOS 自动缩放 */
        padding: 10px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .login-container .woocommerce-form-row {
        margin-bottom: 20px;
    }
    
    .login-container label {
        font-size: 0.95rem;
        margin-bottom: 8px;
        display: block;
    }
    
    /* 复选框在小屏幕上的优化 */
    .woocommerce-form__input-checkbox,
    .woocommerce-form__input.woocommerce-form__input-checkbox,
    input[type="checkbox"].woocommerce-form__input-checkbox,
    .input-checkbox.woocommerce-form__input-checkbox,
    .woocommerce-checkout input[type="checkbox"],
    .woocommerce form input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        margin-right: 8px;
        cursor: pointer;
        flex-shrink: 0;
        vertical-align: middle;
    }
    
    .woocommerce-form__label-for-checkbox,
    .woocommerce-form__label-for-checkbox.checkbox,
    label.woocommerce-form__label-for-checkbox {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .woocommerce-form__label-for-checkbox span,
    .woocommerce-form__label-for-checkbox .woocommerce-terms-and-conditions-checkbox-text {
        line-height: 1.4;
        flex: 1;
    }
    
    .login-container .woocommerce-LostPassword,
    .login-container .woocommerce-register-toggle {
        margin-top: 20px;
        text-align: center;
    }
    
    .login-container .woocommerce-LostPassword a,
    .login-container .woocommerce-register-toggle button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    /* 注册模态框在小屏幕上的优化 */
    .woocommerce-register-modal {
        width: 90% !important;
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        top: 5%;
    }
    
    .woocommerce-register-modal-content {
        width: 100%;
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    form.woocommerce-form.woocommerce-form-register.register {
        padding: 0;
    }
    
    form.woocommerce-form.woocommerce-form-register.register input {
        height: 44px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 12px;
    }
    
    form.woocommerce-form.woocommerce-form-register.register button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        margin-top: 15px;
    }
    
    .woocommerce-register-close {
        right: 10px;
        top: 10px;
        font-size: 28px;
        z-index: 10000;
    }

    .wc-block-grid__product {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title {
        font-size: 14px;
    }

    .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .wp-block-woocommerce-cart-items-block,
    .wp-block-woocommerce-cart-items-block th,
    .wp-block-woocommerce-cart-items-block td {
        font-size: 14px;
        padding: 10px;
    }

    .wp-block-woocommerce-cart .wc-block-components-button,
    .wp-block-woocommerce-cart .wc-block-cart__submit-button {
        width: min(90%, 500px);
        margin-top: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .wc-block-components-panel__button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        font-size: 16px;
        background-color: #007cba;
        color: white;
        border: none;
        cursor: pointer;
        margin: 10px 0;
    }

    .wc-block-components-panel__button svg {
        margin-right: 8px;
    }

    .wc-block-components-totals-coupon__input input {
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

    .wc-block-components-totals-coupon__button {
        display: block;
        font-size: 16px;
        margin: 20px auto;
        background-color: #007cba;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        width: min(30%, 100px) !important;
    }

    .wc-block-components-totals-coupon__form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wc-block-cart__submit-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }

    .wc-block-components-totals-item {
        padding: 10px;
    }

    .wp-block-woocommerce-cart-order-summary-heading-block {
        padding: 10px;
    }

    .wp-block-woocommerce-cart .wc-block-components-totals-coupon input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-button {
        width: 100%;
    }

    .wc-block-cart-item__wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .wc-block-cart-item__wrap>* {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .wc-block-cart-item__quantity {
        margin-left: 0;
    }

    .container.content-single-product {
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .woocommerce div.product {
        margin-top: 50px;
    }

    .woocommerce-tabs .tabs {
        flex-direction: column;
    }

    .woocommerce-tabs .tabs li {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .woocommerce-tabs .tabs a {
        white-space: normal;
        text-align: left;
    }

    .single-product-left-column {
        height: 500px;
    }

    .single-product-big-images img {
        height: 500px;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
    }

    .single-product-right-column {
        justify-content: center;
        align-items: center;

    }

    .clickable-row {
        cursor: pointer;
    }

    .filter-group label {
        font-size: 16px;
    }

    .product_cat-container {
        padding: 0;
    }

    .product_cat-container {
        padding-left: 0;
    }

    .product_cat-container.with-sidebar {
        padding-left: 0;
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .product_cat-category-products-table {
        width: 100%;
        border-collapse: collapse;
    }

    .product_cat-category-products-table th,
    .product_cat-category-products-table td {
        padding: 10px;
        border: 1px solid #ddd;
        white-space: nowrap;
    }

    aside {
        display: none;
    }

    .filter-toggle-btn {
        display: block;
    }

    .archive-product-col-lg-3,
    .archive-product-col-lg-9 {
        width: 100%;
        padding: 10px;
    }

    .archive-product-container {
        margin-top: 60px;
    }

    .product_cat-child-category-item {
        flex-basis: calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .product_cat-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100% !important;
        border-right: none;
    }

    .product_cat-image-container {
        width: 100%;
        margin: 0 auto 10px;
    }

    .product_cat-image-container img {
        width: 85% !important;
        max-width: 85% !important;
        max-height: 150px !important;
        height: auto !important;
        margin: 0 auto;
    }

    .product_cat-card-body {
        width: 100%;
    }

    .category-name,
    .product_cat-child-category-name {
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        overflow: hidden;
        font-size: small;
    }

    .products .product a {
        flex-direction: column;
        text-align: center;
    }

    .products .product img {
        width: 100%;
        margin-bottom: 10px;
    }

    .product_cat-child-category-item,
    .products .product {
        flex-basis: calc(50% - 15px);
        max-width: calc(50% - 15px);
        flex-direction: column;
    }

    .products .woocommerce-loop-product__title {
        width: 100%;
        text-align: center;
        font-size: 0.9em;
    }

    .woocommerce ul.products li.product a img {
        width: 30vw;
    }
}

@media (max-width: 1025px) {
    .product_cat-child-category-item {
        flex-basis: calc(33% - 15px);
        /* Three items per row */
        max-width: calc(33% - 15px);
    }

    .category-name {
        font-size: x-small !important;
    }

    .product_cat-child-category-item,
    .products .product {
        flex-basis: calc(33% - 15px);
        /* Three items per row */
        max-width: calc(33% - 15px);
    }

    #main-content {
        width: 100%;
    }

    .filter-toggle-btn {
        display: block;
    }

    #sidebar {
        margin: 0;
        padding: 0;
        display: none;
        position: absolute;
        z-index: 100000;
        background-color: white;
        width: 100%;
        height: auto;
        top: 13vh;
        left: 0;
        border-top: 1px solid #ddd;
    }

    #sidebar.active {
        display: block;
    }

    .product-filter {
        padding-top: 15px;
    }

    /* Filter toggle button at bottom on mobile with spacing */
    .filter-toggle-btn {
        display: block !important;
        position: fixed !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        top: auto !important;
        width: calc(100% - 40px) !important;
        max-width: 400px !important;
        z-index: 1000 !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        border-radius: 25px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Add bottom padding to product category content to prevent overlap */
    #product_cat-content,
    .product_cat-container {
        padding-bottom: 90px !important;
    }
}

@media (max-width: 1440px) {
    .category-name {
        font-size: small !important;
    }

    .product_cat-category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product_cat-child-category-item {
        text-align: center;
        justify-content: center;
    }

    .sidebar {
        width: 15%;
    }
}

@media (min-width: 1080px) {
    .product_cat-category-products-table td {
        font-size: 13px;
    }
}

@media (max-width: 1080px) {
    .floating-window {
        width: 40%;
    }

    .product_cat-middle-categories {
        margin-left: 50%;
    }

    .product_cat-child-category-item {
        flex-basis: unset;
        max-width: unset;
    }
}

@media(max-width:768px) {
    .floating-window {
        top: 9vh;
    }
    
    /* 移动端产品分类头部布局调整 */
    .product_cat-current-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product_cat-product-count {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .product_cat-middle-categories {
        padding: 0;
    }
}


/* Hide Browse Catalog Area */
.browse-catalog-button-container,
#catalog-popup,
#catalog-overlay {
    display: none !important;
}

/* Contact Page Styles */
.contact-page {
    padding-top: 8vh; /* 为 header 留出空间 */
    min-height: calc(100vh - 8vh);
    background-color: var(--contact-bg-page, #f8f9fa);
    font-family: var(--contact-font-family, 'Inter', sans-serif);
}

.contact-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.contact-page-header h1 {
    color: var(--contact-color-primary, #1a4f72);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-page-header p {
    color: var(--contact-text-secondary, #555555);
    font-size: 1.1rem;
    margin: 0;
}

.contact-info-card {
    background: var(--contact-bg-card, #ffffff);
    border-radius: 12px;
    box-shadow: var(--contact-shadow-md, 0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--contact-border-light, #e0e0e0);
}

.contact-info-card:hover {
    box-shadow: var(--contact-shadow-hover, 0 6px 12px rgba(0, 0, 0, 0.12));
    transform: translateY(-2px);
}

.contact-info-card .card-header {
    background: var(--contact-bg-card-header, #f8f9fa);
    padding: 1.5rem;
    border-bottom: 1px solid var(--contact-border-light, #e0e0e0);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-card .card-header i {
    color: var(--contact-color-accent, #3498db);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.contact-info-card .card-header h3 {
    color: var(--contact-color-primary, #1a4f72);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.contact-info-card .card-body {
    padding: 1.5rem;
}

.contact-info-card .card-body p {
    color: var(--contact-text-primary, #333333);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info-card .card-body p:last-child {
    margin-bottom: 0;
}

.contact-info-card .card-body p strong {
    color: var(--contact-color-primary, #1a4f72);
    font-weight: 600;
}

.contact-map-card {
    background: var(--contact-bg-card, #ffffff);
    border-radius: 12px;
    box-shadow: var(--contact-shadow-md, 0 4px 8px rgba(0, 0, 0, 0.1));
    border: 1px solid var(--contact-border-light, #e0e0e0);
}

.contact-map-card .card-header {
    background: var(--contact-bg-card-header, #f8f9fa);
    padding: 1.5rem;
    border-bottom: 1px solid var(--contact-border-light, #e0e0e0);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-map-card .card-header i {
    color: var(--contact-color-accent, #3498db);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.contact-map-card .card-header h3 {
    color: var(--contact-color-primary, #1a4f72);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.contact-map-card .card-body {
    padding: 0;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-content {
    text-align: center;
    color: var(--contact-text-secondary, #555555);
}

.map-content i {
    font-size: 3rem;
    color: var(--contact-color-accent, #3498db);
    margin-bottom: 1rem;
    display: block;
}

.map-content h4 {
    color: var(--contact-color-primary, #1a4f72);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-content p {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* 交通信息样式 */
.contact-info-card h4 {
    color: var(--contact-color-primary, #1a4f72);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-card h4:first-child {
    margin-top: 0;
}

.contact-info-card h4 i {
    color: var(--contact-color-accent, #3498db);
    font-size: 1rem;
}

.contact-info-card ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.contact-info-card ul li {
    color: var(--contact-text-primary, #333333);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-page {
        padding-top: 6vh;
    }
    
    .contact-page-header h1 {
        font-size: 2rem;
    }
    
    .contact-page-header p {
        font-size: 1rem;
    }
    
    .contact-info-card .card-header {
        padding: 1rem;
    }
    
    .contact-info-card .card-body {
        padding: 1rem;
    }
    
    .contact-info-card .card-header h3 {
        font-size: 1.1rem;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .map-content i {
        font-size: 2.5rem;
    }
    
    .map-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Hide upper-row on small screens */
    .upper-row {
        display: none !important;
    }

    /* From 425px - Top right information */
    .top-right-information a {
        display: none;
    }

    /* From 425px - Main content title */
    .main-content-title {
        width: 100%;
        font-size: small;
        padding-top: 20px;
    }

    /* From 425px - Product category header */
    .product_cat-category-header {
        flex-direction: column;
        align-items: start;
        text-align: center;
    }

    .product_cat-category-image {
        margin-bottom: 10px;
    }

    .product_cat-category-title {
        font-size: 22px;
    }

    .product_cat-child-category-name {
        font-size: 0.6em;
    }

    /* Optimized product_cat-child-category-item for mobile */
    .product_cat-child-category-item {
        flex-direction: column;
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 0;
        align-items: stretch;
    }

    .product_cat-child-category-item a {
        width: 100%;
        display: block;
    }

    .product_cat-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    .product_cat-card-content {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
        padding: 15px !important;
        order: 0;
    }

    .product_cat-image-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product_cat-image-container img {
        max-width: 100% !important;
        max-height: 150px !important;
        width: auto !important;
        height: auto !important;
    }

    .product_cat-card-body {
        width: 100% !important;
        padding: 15px !important;
        order: 1;
    }

    .product_cat-child-category-name {
        font-size: 1rem !important;
        text-align: center;
        margin-bottom: 10px;
    }

    .product_cat-category-description {
        display: none;
    }

    .product_cat-card-count {
        text-align: center;
        margin: 10px auto 0 auto;
        display: inline-block;
    }

    .product_cat-card-count {
        text-align: center;
    }

    /* From 430px - Site main */
    .site-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    #site-footer {
        display: none;
    }

    /* From 430px - Breadcrumb */
    .woocommerce-breadcrumb,
    .single-product-breadcrumb {
        display: none;
    }

    /* From 430px - Single product body title */
    .single-product-body-title {
        padding: 10px 0;
        width: 100%;
    }

    .single-product-body-title h1 {
        font-size: 20px;
    }

    /* From 430px - Single product body */
    .single-product-body {
        padding: 10px 0;
        padding-bottom: 80px; /* 为固定按钮留空间 */
    }

    .single-product-left-column > .row {
        flex-direction: column-reverse;
    }

    /* From 430px - Single product gallery */
    .single-product-gallery-image {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .single-product-gallery-image-container {
        width: 60px;
        height: 60px;
    }

    .single-product-big-images {
        align-items: center;
    }

    .single-product-big-images img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 8px;
    }

    /* From 430px - Product details */
    .product-details-top {
        padding: 15px;
        border-radius: 8px;
    }

    .price-stock-sku p {
        margin: 5px 0;
    }

    .price-stock-sku p:nth-child(2) {
        font-size: 20px;
    }

    .qty-and-input {
        padding: 6px 10px;
    }

    /* From 430px - Add to cart button */
    .add-to-cart-button-wrapper {
        display: none; /* 隐藏原位置的按钮 */
    }

    .add-to-cart-button-wrapper .add-to-cart-button {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 15px;
        font-size: 16px;
        background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
        color: white;
        text-align: center;
        border: none;
        border-radius: 0;
        z-index: 100;
    }

    .cad-download {
        display: none;
    }

    /* From 430px - Single product attribute table */
    .single-product-attribute-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .single-product-attribute-table .attribute-value-button-single {
        padding: 3px 8px;
        font-size: 12px;
    }

    .product-description {
        padding: 12px;
        font-size: 13px;
    }

    /* From 430px - Carousel */
    #carouselExampleIndicators {
        width: 100%;
    }

    .carousel-indicators [data-bs-target] {
        background-color: grey;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        opacity: 0.8;
    }

    .carousel-indicators .active {
        background-color: #c41e3a;
        opacity: 1;
    }

    /* From 425px (second) - Product cat main content */
    .product_cat-main-content {
        display: flex;
        flex-direction: column-reverse;
    }

    /* From 425px (second) - Floating window */
    .floating-window {
        position: static;
        width: 100%;
        height: 45%;
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
        z-index: 0;
    }

    .floating-window img {
        display: none;
    }

    .product_cat-middle-categories {
        margin: 0;
        padding: 0;
    }
    
    /* From 425px (second) - Product cat image container */
    .product_cat-image-container img {
        width: 90% !important;
        max-width: 90% !important;
        max-height: 180px !important;
        height: auto !important;
    }
    
    #product_cat-content > .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* From 425px (second) - My Account page optimizations */
    .woocommerce-MyAccount-navigation {
        padding: 12px 10px;
    }
    
    .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .woocommerce-MyAccount-navigation .avatar-wrapper img.avatar {
        width: 56px;
        height: 56px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 12px;
    }
    
    .woocommerce-MyAccount-content h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .account-card {
        padding: 15px;
    }
    
    .account-card-label {
        font-size: 0.9rem;
    }
    
    .account-card-details .total-spent {
        font-size: 1.5rem;
    }
    
    .account-card-details .order-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-card-details .order-item .order-total {
        margin-top: 5px;
    }
    
    .account-orders-table {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .account-orders-table th,
    .account-orders-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .account-orders-table .woocommerce-orders-table__cell-order-actions {
        white-space: normal;
        padding: 8px 4px;
    }
    
    .account-orders-table .woocommerce-orders-table__cell-order-actions .button,
    .account-orders-table .woocommerce-orders-table__cell-order-actions .woocommerce-button {
        padding: 5px 8px;
        font-size: 0.75rem;
        width: 100%;
        max-width: 100%;
        margin-bottom: 5px;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        display: block;
    }
    
    .account-orders-table .woocommerce-orders-table__cell-order-actions .button:last-child {
        margin-bottom: 0;
    }
    
    .account-downloads .woocommerce-Message {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .account-payment-methods-table {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .account-payment-methods-table th,
    .account-payment-methods-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    /* Contact page styles */
    .contact-page {
        padding-top: 5vh;
    }
    
    .contact-page-header {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .contact-page-header h1 {
        font-size: 1.75rem;
    }
    
    .contact-info-card .card-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-info-card .card-header i {
        font-size: 1.25rem;
    }
    
    .contact-info-card .card-header h3 {
        font-size: 1rem;
    }
    
    .map-placeholder {
        height: 200px;
    }
    
    .map-content i {
        font-size: 2rem;
    }
    
    .map-content h4 {
        font-size: 1rem;
    }
    
    .map-content p {
        font-size: 0.9rem;
    }
}
