/*
Theme Name: Ruffwear Style
Theme URI: https://ruffwear.com/
Description: Custom WooCommerce theme inspired by Ruffwear - premium dog gear retailer
Author: Ruffwear Clone
Version: 1.0.0
Text Domain: ruffwear-style
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
*/

:root {
    --primary-color: #F05A28;
    --secondary-color: #2D2D2D;
    --accent-color: #4CAF50;
    --bg-light: #F8F8F8;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --price-color: #F05A28;
    --star-color: #FFD700;
    --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    /* 防止 100vw 通栏元素（含滚动条宽度）引起横向滚动；clip 不破坏 sticky */
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    padding: 20px 0 60px;
}

/* Header */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Body menu open state */
body.menu-open {
    overflow: hidden;
}

/* Header hidden state for mobile scroll */
.site-header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.site-header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-top {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.site-logo {
    display: none; /* 暂时隐藏站点 Logo，恢复时删除本行 */
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

.site-logo span {
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
}

/* Dropdown Menu */
.main-navigation .menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-navigation .menu-item-has-children > a .fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu a:hover {
    background: #f8f8f8;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    color: var(--text-dark);
    position: relative;
    font-size: 20px;
    transition: color 0.2s ease;
}

.header-icon:hover {
    color: var(--primary-color);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-modal.active {
    display: flex;
    animation: searchModalFadeIn 0.3s ease;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 1;
}

.search-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.search-modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text-dark);
    text-align: center;
}

.search-modal-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.search-input-icon {
    position: absolute;
    left: 20px;
    color: #999;
    font-size: 16px;
}

.search-modal-input {
    flex: 1;
    padding: 18px 60px 18px 50px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    font-family: inherit;
}

.search-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
    height: 100%;
}

.search-submit-btn:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    margin-top: 24px;
}

.search-suggestions-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.search-suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.search-results-container {
    margin-top: 30px;
}

.search-results-container:not(:empty) {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #f8f8f8;
}

.search-result-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f0f0;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.search-result-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.search-results-empty {
    text-align: center;
    padding: 20px;
    color: #999;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-thumb-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f0f0;
    display: block;
}

.search-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.search-result-item.view-all {
    justify-content: center;
    text-align: center;
    margin-top: 12px;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 8px;
}

@keyframes searchModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .search-modal {
        padding-top: 60px;
    }
    .search-modal-content {
        padding: 24px;
    }
    .search-modal-title {
        font-size: 20px;
    }
    .search-modal-input {
        padding: 14px 50px 14px 44px;
        font-size: 14px;
    }
    .search-input-icon {
        left: 16px;
    }
    .search-submit-btn {
        padding: 14px 18px;
    }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Hero Section */
/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: var(--max-width);
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
    transform: translateY(-30px);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    max-width: 600px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta-button:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-cta-button i {
    transition: transform 0.3s ease;
}

.hero-cta-button:hover i {
    transform: translateX(5px);
}

/* Feature Banner */
.feature-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.feature-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        270deg,
        rgba(0,0,0,0.5) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.1) 100%
    );
    z-index: 1;
}

.feature-banner-content {
    position: relative;
    z-index: 2;
    text-align: right;
    max-width: var(--max-width);
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.feature-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.feature-title {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.15;
    max-width: 520px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.feature-description {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 450px;
    line-height: 1.8;
}

.feature-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.feature-cta-button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-cta-button i {
    transition: transform 0.3s ease;
}

.feature-cta-button:hover i {
    transform: translateX(5px);
}

/* Category Cards */
.categories-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-card-image {
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.category-card-content {
    padding: 25px 20px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Product Grid */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 580px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-card-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #bbb;
    background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
}

.no-image-placeholder .placeholder-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.no-image-placeholder .placeholder-text {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-badge {
    position: absolute;
    top: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.sale {
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B, #ee5a52);
    color: #fff;
}

.product-badge.featured {
    left: 15px;
    background: linear-gradient(135deg, #FFD93D, #f5b800);
    color: #1a1a1a;
}

.product-badge.out-of-stock {
    right: 15px;
    background: #666;
    color: #fff;
}

.product-card-content {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 170px;
}

.product-category {
    font-size: 11px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 16px;
}

.star-rating {
    color: var(--star-color);
    font-size: 14px;
    line-height: 1;
}

.star-rating .star {
    color: #ddd;
}

.star-rating .star.active {
    color: var(--star-color);
}

.rating-count {
    font-size: 13px;
    color: var(--text-gray);
}

.rating-count.no-reviews {
    color: #bbb;
    font-style: italic;
}

.product-price-row {
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price .current-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .regular-price {
    font-size: 15px;
    text-decoration: line-through;
    color: #999;
}

.product-price .sale-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* WooCommerce get_price_html 输出的划线原价 + 促销价（simple/variable 通用） */
.product-price del .woocommerce-Price-amount {
    font-size: 15px;
    font-weight: 400;
    color: #999;
}

.product-price del {
    text-decoration: line-through;
    color: #999;
}

.product-price ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card-footer {
    padding: 0 22px 20px;
    margin-top: auto;
}

.add-to-cart-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), #d44a1c);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

.add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 90, 40, 0.3);
    color: #fff;
}

.add-to-cart-button:active {
    transform: translateY(0);
}

.add-to-cart-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-button .button-icon {
    font-size: 14px;
}

/* Shop Archive Page */
.woocommerce-products-header {
    text-align: center;
    padding: 40px 0 30px;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #fafafa 0%, transparent 100%);
    border-radius: 12px;
}

.woocommerce-products-header__title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.woocommerce-products-header p {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-result-count {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sort label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.shop-sort select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.shop-sort select:hover {
    border-color: var(--primary-color);
}

/* Pagination Styles */
body .shop-pagination,
body .woocommerce-pagination,
body .pagination {
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

body .shop-pagination .page-numbers,
body .woocommerce-pagination .page-numbers,
body .pagination .page-numbers {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body .shop-pagination .page-numbers li,
body .woocommerce-pagination .page-numbers li,
body .pagination .page-numbers li {
    display: inline-flex !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body .shop-pagination .page-numbers a,
body .shop-pagination .page-numbers span,
body .woocommerce-pagination a.page-numbers,
body .woocommerce-pagination span.page-numbers,
body .pagination a.page-numbers,
body .pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    background: transparent !important;
    cursor: pointer !important;
    line-height: 1 !important;
    float: none !important;
    margin: 0 4px !important;
    text-indent: 0 !important;
    box-sizing: border-box !important;
}

body .shop-pagination .page-numbers a:hover,
body .woocommerce-pagination a.page-numbers:hover,
body .pagination a.page-numbers:hover {
    background: #F05A28 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.4) !important;
}

body .shop-pagination .page-numbers .current,
body .woocommerce-pagination span.page-numbers.current,
body .pagination span.page-numbers.current {
    background: #F05A28 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.4) !important;
}

body .shop-pagination .page-numbers .prev,
body .shop-pagination .page-numbers .next,
body .woocommerce-pagination a.prev.page-numbers,
body .woocommerce-pagination a.next.page-numbers,
body .pagination a.prev.page-numbers,
body .pagination a.next.page-numbers {
    width: auto !important;
    min-width: 44px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
}

body .shop-pagination .page-numbers .prev:hover,
body .shop-pagination .page-numbers .next:hover,
body .woocommerce-pagination a.prev.page-numbers:hover,
body .woocommerce-pagination a.next.page-numbers:hover,
body .pagination a.prev.page-numbers:hover,
body .pagination a.next.page-numbers:hover {
    background: #F05A28 !important;
    color: #fff !important;
    border-color: #F05A28 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(240, 90, 40, 0.4) !important;
}

/* Features Section */
.features-section {
    padding: 50px 0;
    background: var(--secondary-color);
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.85;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer-column h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Accordion - Desktop (always expanded) */
.footer-accordion-toggle {
    display: none;
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.footer-accordion-toggle h4 {
    margin-bottom: 0;
}

.footer-accordion-toggle .accordion-icon {
    display: none;
}

.footer-accordion-panel {
    display: block;
    overflow: visible;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

/* Footer Badges */
.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.footer-badges .badge-free-shipping,
.footer-badges .badge-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ccc;
}

.footer-badges i {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 25px 0;
    color: #888;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-methods svg {
    width: 44px;
    height: 29px;
    display: block;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.payment-methods svg:hover {
    transform: translateY(-2px);
}

/* WooCommerce Overrides */
body .woocommerce ul.products,
body ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
    float: none !important;
    clear: none !important;
    counter-reset: none !important;
    align-items: stretch !important;
}

body .woocommerce ul.products::before,
body .woocommerce ul.products::after,
body ul.products::before,
body ul.products::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body .woocommerce ul.products li.product,
body ul.products li.product {
    flex: 0 0 calc(25% - 19px) !important;
    max-width: calc(25% - 19px) !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    clear: none !important;
    height: auto !important;
    counter-increment: none !important;
    box-sizing: border-box !important;
}

body .woocommerce ul.products li.product::before,
body .woocommerce ul.products li.product::after,
body ul.products li.product::before,
body ul.products li.product::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product .product-card {
    height: 100%;
}

.woocommerce ul.products li.product .product-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: block;
}

.woocommerce ul.products li.product h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
}

.woocommerce ul.products li.product .price {
    color: var(--price-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .add_to_cart_button {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
    text-align: center;
    display: block;
    width: 100%;
}

.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Product Card Integration with WooCommerce Loop */
.woocommerce ul.products .product-card {
    height: 100%;
}

.woocommerce ul.products .product-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Single */
.single-product-container {
    padding: 0 0 60px;
}

/* Product Hero Section */
.product-hero-section {
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
    padding: 20px 0 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Product Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 13px;
    color: #999;
    flex-wrap: wrap;
}

.product-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-sep {
    color: #ddd;
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Product Main Layout */
.product-main-layout {
    display: grid;
    /* minmax(0,1fr) 而非 1fr：缩略图条是 nowrap flex，14 张 72px 缩略图会产生
       1138px 的 min-content，导致 1fr 轨道被撑开、右栏被挤扁并整页横向溢出 */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* Product Gallery Column */
.product-gallery-column {
    position: sticky;
    top: 120px;
    min-width: 0;
}

/* Product Summary Column */
.product-summary-column {
    min-width: 0;
}

/* woocommerce-layout.css 有 .woocommerce div.product div.summary{float:right;width:48%}
   （3 类 2 元素），必须用更高优先级选择器重置，否则整块商品信息会收缩到右栏最右侧 */
.woocommerce div.product .product-main-layout .product-summary-column .summary,
.woocommerce div.product .product-main-layout .product-summary-column .entry-summary {
    float: none;
    width: 100%;
    max-width: none;
}

.product-gallery-wrapper {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
}

/* Override WooCommerce Gallery Styles */
.woocommerce-product-gallery {
    position: relative;
    float: none !important;
    width: 100% !important;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce-product-gallery__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-product-gallery__image > a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* Sale Flash */
.onsale {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FF6B6B, #ee5a52);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    min-width: auto;
    min-height: auto;
    line-height: 1;
}

/* Product Gallery Thumbnails - Mobile sizes handled in responsive sections */

/* WooCommerce Product Gallery Trigger */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery__trigger::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: var(--text-dark);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat;
    text-indent: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.woocommerce-product-gallery__trigger:hover {
    background: var(--primary-color);
}

.woocommerce-product-gallery__trigger:hover::before {
    background-color: #fff;
}

.woocommerce-product-gallery__trigger img {
    display: none !important;
}

/* Product Gallery Thumbnails */
.product-gallery-thumbs-wrapper {
    margin-top: 15px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* When all thumbnails fit without scrolling, center them (arrows hidden by JS) */
.product-gallery-thumbs-wrapper.thumbs-fit .product-gallery-thumbs-list {
    justify-content: center;
}

.gallery-nav-prev,
.gallery-nav-next {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 12px;
    z-index: 2;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.gallery-nav-prev:active,
.gallery-nav-next:active {
    transform: scale(0.9);
}

.product-gallery-thumbs-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    flex: 1;
    scroll-behavior: smooth;
    position: relative;
}

.product-gallery-thumbs-list::-webkit-scrollbar {
    height: 4px;
}

.product-gallery-thumbs-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.product-gallery-thumbs-list::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 74, 28, 0.2);
}

/* Main image */
.ruffwear-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

/* ================================================
 * Main Image Navigation Arrows
 * ================================================ */
.product-gallery-main {
    position: relative;
}

.gallery-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
}

.product-gallery-main:hover .gallery-main-nav,
.gallery-main-nav:focus-visible {
    opacity: 1;
    visibility: visible;
}

.gallery-main-nav:hover {
    background: #fff;
    color: var(--primary-color, #d04a1c);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.08);
}

.gallery-main-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-main-nav svg {
    width: 20px;
    height: 20px;
}

.gallery-main-prev {
    left: 12px;
}

.gallery-main-next {
    right: 12px;
}

/* ================================================
 * Dot Indicators
 * ================================================ */
.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-gallery-main:hover .gallery-dots,
.gallery-dots:focus-within {
    opacity: 1;
    visibility: visible;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    display: block;
}

.gallery-dot:hover {
    border-color: #fff;
    transform: scale(1.2);
}

.gallery-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ================================================
 * Responsive Gallery
 * ================================================ */
@media (max-width: 992px) {
    .gallery-main-nav {
        width: 38px;
        height: 38px;
        opacity: 0.7;
        visibility: visible;
    }
    
    .gallery-main-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-dots {
        opacity: 0.7;
        visibility: visible;
        bottom: 12px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .gallery-dot {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 768px) {
    .gallery-main-nav {
        width: 36px;
        height: 36px;
        left: 8px;
        right: 8px;
        opacity: 1;
        visibility: visible;
    }
    
    .gallery-main-prev {
        left: 8px;
    }
    
    .gallery-main-next {
        right: 8px;
    }
    
    .gallery-main-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .gallery-dots {
        bottom: 10px;
        padding: 5px 8px;
        gap: 5px;
    }
    
    .gallery-dot {
        width: 6px;
        height: 6px;
    }
    
    .gallery-thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    .gallery-nav-prev,
    .gallery-nav-next {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}

/* Product Summary Column */
.product-summary-column {
    padding-top: 10px;
}

/* Product Title */
.product-summary-column .product_title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Product Rating */
.product-summary-column .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-summary-column .star-rating {
    float: none;
    width: auto;
    font-size: 14px;
    overflow: hidden;
    position: relative;
    height: 1.618em;
    line-height: 1.618;
    font-family: 'star';
    color: var(--star-color);
}

.product-summary-column .star-rating::before {
    content: '\73\73\73\73\73';
    color: #ddd;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.product-summary-column .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.product-summary-column .star-rating span::before {
    content: '\53\53\53\53\53';
    top: 0;
    position: absolute;
    left: 0;
    color: var(--star-color);
}

.product-summary-column .woocommerce-review-link {
    color: var(--text-gray);
    font-size: 14px;
    text-decoration: none;
}

.product-summary-column .woocommerce-review-link:hover {
    color: var(--primary-color);
}

/* Product Price */
.product-summary-column .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-summary-column .price del {
    font-size: 20px;
    font-weight: 500;
    color: #bbb;
    text-decoration: line-through;
}

.product-summary-column .price ins {
    text-decoration: none;
    color: var(--primary-color);
}

/* Product Short Description */
.product-summary-column .woocommerce-product-details__short-description {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.product-summary-column .woocommerce-product-details__short-description p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
}

/* Product Variations */
.product-summary-column table.variations {
    margin-bottom: 20px;
    border: none;
    width: 100%;
}

.product-summary-column table.variations td {
    display: block;
    padding: 8px 0;
    border: none;
}

.product-summary-column table.variations td.label {
    padding: 0 0 8px;
    background: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-summary-column table.variations td.value {
    padding: 0 0 15px;
}

.product-summary-column table.variations select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    appearance: auto;
}

.product-summary-column table.variations select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

.product-summary-column .reset_variations {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: underline;
    margin-top: 5px;
    display: inline-block;
}

/* --- Variation Swatches --- */
.variation-swatches-wrapper {
    margin: 10px 0 18px;
}

.variation-swatches-wrapper .swatch-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    display: block;
    margin-bottom: 8px;
}

.variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swatch-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.swatch-color {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.swatch-color:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.swatch-item.selected .swatch-color {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color), 0 2px 6px rgba(240, 90, 40, 0.3);
}

.swatch-item.out-of-stock .swatch-color {
    opacity: 0.4;
}

.swatch-color .swatch-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.15s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.swatch-item.selected .swatch-color .swatch-check {
    opacity: 1;
}

.swatch-item .swatch-name {
    font-size: 10px;
    color: #999;
    text-align: center;
    max-width: 52px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swatch-item.selected .swatch-name {
    color: var(--text-dark);
    font-weight: 600;
}

/* Size Swatches */
.size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.size-swatch-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-body);
}

.size-swatch-item:hover {
    border-color: #999;
    background: #fff;
    transform: translateY(-1px);
}

.size-swatch-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 6px rgba(240, 90, 40, 0.3);
}

.size-swatch-item.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Hide default select when swatches are active */
.variations_form .variations select.swatch-active,
.variations_form .variations td.value select.swatch-active {
    display: none !important;
}

/* Variation price display */
.woocommerce-variation-price {
    margin: 15px 0 10px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.woocommerce-variation-price .price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--price-color) !important;
}

.woocommerce-variation-availability {
    margin: 8px 0;
}

.woocommerce-variation-availability .stock {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
}

/* Quantity & Add to Cart */
.product-summary-column .cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.product-summary-column .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.product-summary-column .quantity .qty {
    width: 60px;
    height: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    background: #fff;
}

.product-summary-column .quantity .qty:focus {
    outline: none;
}

/* Custom quantity buttons */
.qty-btn {
    width: 44px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-weight: 700;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Single Add to Cart Button */
.product-summary-column .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #d44a1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-summary-column .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(240, 90, 40, 0.3);
}

.product-summary-column .single_add_to_cart_button:active {
    transform: translateY(0);
}

.product-summary-column .single_add_to_cart_button.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.product-summary-column .single_add_to_cart_button.added::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stock Status */
.product-summary-column .stock {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-block;
}

.product-summary-column .stock.in-stock {
    color: #2e7d32;
    background: #e8f5e9;
}

.product-summary-column .stock.out-of-stock {
    color: #c62828;
    background: #ffebee;
}

/* Product Meta */
.product-summary-column .product_meta {
    margin-top: 5px;
}

.product-summary-column .product_meta > span {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.product-summary-column .product_meta > span span,
.product-summary-column .product_meta > span a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
}

.product-summary-column .product_meta > span a:hover {
    color: var(--primary-color);
}

.product-summary-column .sku_wrapper {
    margin-bottom: 6px;
}

.product-summary-column .posted_in,
.product-summary-column .tagged_as {
    margin-bottom: 6px;
}

/* Product Sharing */
.product-summary-column .woocommerce-product-details__short-description + .product_meta {
    margin-top: 0;
}

/* Product Details Section */
.product-details-section {
    margin-top: 20px;
}

/* WooCommerce Tabs */
.woocommerce-tabs {
    margin-bottom: 50px;
}

/* 通栏背景色带：品牌深蓝，与上方商品信息区隔开（full-bleed 100vw 技巧） */
.woocommerce div.product .woocommerce-tabs {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 48px 20px 44px;
    background: #0B253C;
}

/* 色带底部品牌橙细线点缀（两端渐隐） */
.woocommerce div.product .woocommerce-tabs::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 12%,
        var(--primary-color) 88%,
        transparent 100%);
}

@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs {
        padding: 32px 16px 30px;
    }
}

/* 胶囊分段控件（参考 ruffwear.com：浅灰轨道 + 白色 active 药丸，居中）
   注意：Woo 核心用 .woocommerce div.product .woocommerce-tabs ul.tabs 高优先级设置
   margin/padding，此处必须同级提权才能覆盖 */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 4px;
    background: #E8EAED;
    box-shadow: inset 0 0 0 1px rgba(11, 37, 60, 0.08);
    border-radius: 999px;
    border-bottom: none;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    /* 边缘渐隐：由 JS 在对应方向存在溢出时设置 --tabs-fade-l/r */
    --tabs-fade-l: 0px;
    --tabs-fade-r: 0px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--tabs-fade-l), #000 calc(100% - var(--tabs-fade-r)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--tabs-fade-l), #000 calc(100% - var(--tabs-fade-r)), transparent 100%);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

/* 鼠标拖拽滚动进行中 */
.woocommerce div.product .woocommerce-tabs ul.tabs.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    -webkit-user-select: none;
    user-select: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 999px;
    position: relative;
    display: block;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0B253C;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: #fff;
    color: #0B253C;
    box-shadow: 0 1px 4px rgba(11, 37, 60, 0.18);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #0B253C;
    background: rgba(255, 255, 255, 0.55);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a:hover {
    background: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 34px 0 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* 正文列收窄居中（参考 ruffwear.com 阅读宽度） */
.woocommerce div.product .woocommerce-tabs .panel > * {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* 面板标题：小号大写标签式 */
.woocommerce div.product .woocommerce-tabs .panel > h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #6B7A87;
    margin: 0 auto 22px;
}

/* 正文段落 */
.woocommerce div.product .woocommerce-tabs .panel > p {
    font-size: 15px;
    line-height: 1.75;
    color: #3E4C59;
    margin: 0 auto 18px;
}

/* Specifications 卡片（覆盖导入内容的内联样式） */
.woocommerce div.product .woocommerce-tabs .panel .product-specs {
    margin: 28px auto !important;
    padding: 22px 26px !important;
    background: #F7F9FB !important;
    border: 1px solid #E5EAEF;
    border-radius: 12px;
}

.woocommerce div.product .woocommerce-tabs .panel .product-specs h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6B7A87;
    margin: 0 0 10px;
}

.woocommerce div.product .woocommerce-tabs .panel .product-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs .panel .product-specs li {
    display: flex;
    padding: 9px 0;
    border-bottom: 1px solid #EDF1F4;
    font-size: 14px;
    color: #3E4C59;
}

.woocommerce div.product .woocommerce-tabs .panel .product-specs li:last-child {
    border-bottom: none;
    padding-bottom: 2px;
}

/* Additional Information Table */
.woocommerce-Tabs-panel--additional_information table.shop_attributes {
    border: 1px solid #EDF1F4;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes th {
    background: var(--bg-light);
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    border: none;
    text-align: left;
    width: 200px;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-gray);
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) td {
    background: #fafafa;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes p {
    margin: 0;
}

/* Reviews Tab */
.woocommerce-Tabs-panel--reviews .woocommerce-Reviews {
    max-width: 800px;
}

.woocommerce-Tabs-panel--reviews .woocommerce-Reviews-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.woocommerce-Tabs-panel--reviews #comments {
    margin-bottom: 30px;
}

.woocommerce-Tabs-panel--reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-Tabs-panel--reviews .commentlist li {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-Tabs-panel--reviews .commentlist li:last-child {
    border-bottom: none;
}

.woocommerce-Tabs-panel--reviews .comment_container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.woocommerce-Tabs-panel--reviews .comment_container img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--bg-light);
}

.woocommerce-Tabs-panel--reviews .comment-text {
    flex: 1;
}

.woocommerce-Tabs-panel--reviews .comment-text .star-rating {
    margin-bottom: 8px;
    width: 5.5em;
    font-size: 13px;
    color: var(--star-color);
    float: none;
}

.woocommerce-Tabs-panel--reviews .comment-text .meta {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.woocommerce-Tabs-panel--reviews .comment-text .description p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Review Form */
.woocommerce-Tabs-panel--reviews #review_form_wrapper {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.woocommerce-Tabs-panel--reviews #review_form label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-Tabs-panel--reviews #review_form input[type="text"],
.woocommerce-Tabs-panel--reviews #review_form input[type="email"],
.woocommerce-Tabs-panel--reviews #review_form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.woocommerce-Tabs-panel--reviews #review_form input:focus,
.woocommerce-Tabs-panel--reviews #review_form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

.woocommerce-Tabs-panel--reviews #review_form textarea {
    height: 120px;
    resize: vertical;
}

.woocommerce-Tabs-panel--reviews #review_form .submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-Tabs-panel--reviews #review_form .submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Star Rating in Review Form */
.comment-form-rating .stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 15px;
}

.comment-form-rating .stars a {
    color: #ddd;
    font-size: 20px;
    transition: color 0.2s ease;
    position: relative;
    text-indent: -9999px;
    width: 24px;
    display: block;
}

.comment-form-rating .stars a::before {
    font-family: 'star';
    text-indent: 0;
    position: absolute;
    left: 0;
    content: '\73';
    font-size: 20px;
}

.comment-form-rating .stars a.active::before,
.comment-form-rating .stars a:hover::before {
    color: var(--star-color);
}

/* ============================================================
   深蓝通栏配色（#0B253C dark band overrides）
   ============================================================ */

/* Tab 胶囊轨道：半透明白 */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* 非激活 tab 文字反白 */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: rgba(255, 255, 255, 0.78);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* active 药丸：白底深字，阴影加深 */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: #fff;
    color: #0B253C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a:hover {
    background: #fff;
}

/* 面板标签标题 / 正文 */
.woocommerce div.product .woocommerce-tabs .panel > h2 {
    color: #8FA6BA;
}

.woocommerce div.product .woocommerce-tabs .panel > p {
    color: #C6D3DE;
}

/* 面板内正文列表与次级标题（导入内容可能含 h3/h4/ul） */
.woocommerce div.product .woocommerce-tabs .panel h3,
.woocommerce div.product .woocommerce-tabs .panel h4 {
    color: #EAF1F6;
}

.woocommerce div.product .woocommerce-tabs .panel li {
    color: #C6D3DE;
}

/* Specifications 卡片 */
.woocommerce div.product .woocommerce-tabs .panel .product-specs {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16);
}

.woocommerce div.product .woocommerce-tabs .panel .product-specs h3 {
    color: #8FA6BA;
}

.woocommerce div.product .woocommerce-tabs .panel .product-specs li {
    color: #C6D3DE;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Additional Information 表格 */
.woocommerce-Tabs-panel--additional_information table.shop_attributes {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes th {
    background: rgba(255, 255, 255, 0.1);
    color: #E7EEF4;
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes td {
    color: #C6D3DE;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) th,
.woocommerce-Tabs-panel--additional_information table.shop_attributes tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.05);
}

/* Reviews */
.woocommerce-Tabs-panel--reviews .woocommerce-Reviews-title {
    color: #fff;
}

.woocommerce-Tabs-panel--reviews .commentlist li {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.woocommerce-Tabs-panel--reviews .comment-text .meta {
    color: #93A6B8;
}

.woocommerce-Tabs-panel--reviews .comment-text .description p {
    color: #C6D3DE;
}

.woocommerce-Tabs-panel--reviews .woocommerce-noreviews {
    color: #93A6B8;
}

.woocommerce-Tabs-panel--reviews #review_form_wrapper {
    background: rgba(255, 255, 255, 0.05);
}

.woocommerce-Tabs-panel--reviews #review_form .comment-reply-title {
    color: #fff;
}

.woocommerce-Tabs-panel--reviews #review_form label {
    color: #C6D3DE;
}

/* 评分星星未选中态 */
.comment-form-rating .stars a {
    color: rgba(255, 255, 255, 0.35);
}

/* Related Products / Upsells */
.related.products,
.upsells.products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related.products h2,
.upsells.products h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.related.products > p,
.upsells.products > p {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 40px;
}

.related.products ul.products,
.upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related.products ul.products::before,
.related.products ul.products::after,
.upsells.products ul.products::before,
.upsells.products ul.products::after {
    display: none;
}

.related.products ul.products li.product,
.upsells.products ul.products li.product {
    width: 100% !important;
    float: none;
    margin: 0;
    padding: 0;
    clear: none;
}

/* WooCommerce Notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.woocommerce-notices-wrapper .woocommerce-message {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.woocommerce-notices-wrapper .woocommerce-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.woocommerce-notices-wrapper .woocommerce-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-left: auto;
    transition: all 0.3s ease;
}

.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-info .button:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Variable Product Price Range */
.product-summary-column .price .from {
    display: none;
}

/* Cart Page */
.cart-page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 0;
}

.cart-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-page-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cart-page-subtitle {
    color: var(--text-gray);
    font-size: 16px;
}

.cart-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: flex-start;
}

/* Cart Table */
.cart-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.cart-table-wrapper table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    table-layout: fixed;
}

.cart-table-wrapper table.shop_table thead th {
    background: var(--bg-light);
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    border: none;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    display: table-cell !important;
}

/* Control column widths with !important to override WooCommerce defaults */
.cart-table-wrapper table.shop_table .product-thumbnail {
    width: 120px !important;
    display: table-cell !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.cart-table-wrapper table.shop_table .product-name {
    width: auto !important;
    display: table-cell !important;
}

.cart-table-wrapper table.shop_table .product-price {
    width: 70px !important;
    text-align: center;
    display: table-cell !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.cart-table-wrapper table.shop_table .product-quantity {
    width: 130px !important;
    text-align: center;
    display: table-cell !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.cart-table-wrapper table.shop_table .product-subtotal {
    width: 90px !important;
    text-align: center;
    display: table-cell !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.cart-table-wrapper table.shop_table .product-remove {
    width: 36px !important;
    text-align: center;
    display: table-cell !important;
}

.cart-table-wrapper table.shop_table tbody tr {
    border-bottom: 1px solid #f5f5f5;
}

.cart-table-wrapper table.shop_table tbody tr:last-child {
    border-bottom: none;
}

.cart-table-wrapper table.shop_table td {
    padding: 20px;
    border: none;
    vertical-align: middle;
}

/* Product Thumbnail in Cart
   Note: selector must beat WooCommerce core's
   `.woocommerce-cart table.cart img { width: 32px; }` (specificity 0-2-2) */
.cart-table-wrapper table.shop_table .product-thumbnail img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
}

/* Product Name in Cart */
.cart-table-wrapper .product-name {
    padding-right: 20px;
    display: table-cell !important;
}

.cart-table-wrapper .product-name a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: block !important;
    line-height: 1.4;
    word-break: break-word;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
}

.cart-table-wrapper .product-name a:hover {
    color: var(--primary-color);
}

.cart-table-wrapper .product-name .variation {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    display: block !important;
    line-height: 1.5;
}

.cart-table-wrapper .product-name .variation dt {
    float: none;
    font-weight: 600;
    display: inline;
}

.cart-table-wrapper .product-name .variation dd {
    display: inline;
    margin: 0 10px 0 0;
}

/* Center align price and subtotal */
.cart-table-wrapper .product-price,
.cart-table-wrapper .product-subtotal {
    text-align: center;
    display: table-cell !important;
}

.cart-table-wrapper .product-price .amount,
.cart-table-wrapper .product-subtotal .amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.cart-table-wrapper .product-subtotal .amount {
    color: var(--primary-color);
}

/* Remove button styling */
.cart-table-wrapper .product-remove {
    text-align: center;
}

.cart-table-wrapper .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fee;
    color: #e74c3c;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.cart-table-wrapper .product-remove .remove:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}

/* Cart Quantity */
.cart-quantity-wrapper .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.cart-quantity-wrapper .quantity .qty {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.cart-quantity-wrapper .qty-btn {
    width: 36px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.cart-quantity-wrapper .qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Remove Button */
.cart-table-wrapper .product-remove {
    width: 40px;
    text-align: center;
}

.cart-table-wrapper .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-table-wrapper .remove:hover {
    background: #ff4444;
    color: #fff;
}

/* Cart Actions Row */
.cart-actions-row td.actions {
    display: table-cell; /* keep full-width table cell; layout handled by .cart-actions-inner */
    background: var(--bg-light);
    padding: 20px !important;
}

.cart-actions-row .cart-actions-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Coupon */
.coupon {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.coupon-label i {
    color: var(--primary-color);
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    font-family: inherit;
}

.coupon-input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

.coupon-btn {
    padding: 10px 24px !important;
    background: var(--secondary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.coupon-btn:hover {
    background: var(--primary-color) !important;
}

/* Update Cart Button */
.update-cart-btn {
    white-space: nowrap;
    padding: 10px 24px !important;
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.update-cart-btn:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Cart Totals */
.cart-summary-column .cart_totals {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 30px;
    position: sticky;
    top: 120px;
}

.cart-totals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-totals-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    margin: 0;
}

.cart-totals-title i {
    color: var(--primary-color);
}

.cart-items-count {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.cart-totals-table {
    margin-bottom: 20px;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-totals-row:last-child {
    border-bottom: none;
}

.cart-totals-row .row-label {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-totals-row .row-label i {
    color: var(--primary-color);
    font-size: 12px;
}

.cart-totals-row .row-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-totals-row .row-value .amount {
    font-weight: 700;
}

.coupon-row .row-value {
    color: #2e7d32;
}

.shipping-row .row-value {
    font-size: 13px;
}

.shipping-note {
    display: block;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 500;
    margin-top: 3px;
}

.shipping-row .shipping-calculator-button {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: underline;
}

.order-total-row {
    padding: 16px 0;
    margin-top: 5px;
}

.order-total-row .row-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.order-total-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.order-total-value .amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Proceed to Checkout */
.wc-proceed-to-checkout {
    padding: 0;
    margin-top: 20px;
    text-align: center;
}

.woocommerce .wc-proceed-to-checkout a.button.checkout-button {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color), #d44a1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.woocommerce .wc-proceed-to-checkout a.button.checkout-button:hover {
    background: linear-gradient(135deg, #d34a1e, #b83f16);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(240, 90, 40, 0.3);
    color: #fff;
}

.cart-totals-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.payment-methods-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.payment-methods-icons svg {
    width: 40px;
    height: 27px;
    display: block;
    border-radius: 4px;
}

.secure-checkout-text {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secure-checkout-text i {
    color: #2e7d32;
}

/* Cart Empty State */
.cart-empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.cart-empty-icon {
    color: var(--primary-color, #d04a1c);
    margin-bottom: 30px;
    opacity: 0.8;
}

.cart-empty-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.cart-empty-message {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cart-empty-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--primary-color, #d04a1c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(208, 74, 28, 0.3);
}

.cart-empty-button:hover {
    background: var(--primary-hover, #b83f16);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(208, 74, 28, 0.4);
    color: #fff;
}

/* Checkout Page */
.checkout-page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 0;
}

.checkout-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-page-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.checkout-page-subtitle {
    color: var(--text-gray);
    font-size: 16px;
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.checkout-step.active .step-number {
    background: var(--primary-color);
    color: #fff;
}

.checkout-step .step-label {
    font-size: 14px;
    font-weight: 600;
    color: #bbb;
    transition: color 0.3s ease;
}

.checkout-step.active .step-label {
    color: var(--text-dark);
}

.checkout-step-divider {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 15px;
}

/* Checkout Content Layout */
.checkout-content-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: flex-start;
}

/* Checkout Sections */
.checkout-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 25px;
}

.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-section-header i {
    font-size: 20px;
    color: var(--primary-color);
}

.checkout-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

/* Checkout Form Fields */
/* 区块标题已是 Contact Information，隐藏 WooCommerce 默认的 Billing details 子标题 */
.checkout-section .woocommerce-billing-fields > h3 {
    display: none;
}

.checkout-section .form-row {
    margin-bottom: 16px;
    padding: 0;
}

.checkout-section .form-row label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #4b5563;
    margin-bottom: 7px;
    display: block;
}

.checkout-section .form-row label .optional {
    color: #9aa1ac;
    font-weight: 400;
}

.checkout-section .form-row label .required {
    color: var(--primary-color);
    border-bottom: none;
    margin-left: 2px;
    text-decoration: none;
}

.checkout-section .form-row input[type="text"],
.checkout-section .form-row input[type="tel"],
.checkout-section .form-row input[type="email"],
.checkout-section .form-row input[type="number"],
.checkout-section .form-row input[type="date"],
.checkout-section .form-row input[type="time"],
.checkout-section .form-row input[type="datetime"],
.checkout-section .form-row input[type="datetime-local"],
.checkout-section .form-row select,
.checkout-section .form-row textarea {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    background: #f7f8fa;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-section .form-row textarea {
    height: auto;
    min-height: 90px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.5;
}

.checkout-section .form-row input::placeholder,
.checkout-section .form-row textarea::placeholder {
    color: #a6adba;
}

.checkout-section .form-row input:focus,
.checkout-section .form-row select:focus,
.checkout-section .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
}

/* select2 与输入框统一外观 */
.checkout-section .form-row .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    background: #f7f8fa;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-section .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 14px;
    padding-right: 36px;
    font-size: 15px;
    color: var(--text-dark);
}

.checkout-section .form-row .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #a6adba;
}

.checkout-section .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px;
    top: 1px;
    right: 8px;
}

.checkout-section .form-row .select2-container--focus .select2-selection--single,
.checkout-section .form-row .select2-container--open .select2-selection--single {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
}

/* City / State / ZIP 同行三列（覆盖 form-row-wide 的 clear: both） */
#billing_city_field {
    float: left;
    clear: none;
    width: 40%;
    padding-right: 8px;
}

#billing_state_field {
    float: left;
    clear: none;
    width: 30%;
    padding: 0 4px;
}

#billing_postcode_field {
    float: left;
    clear: none;
    width: 30%;
    padding-left: 8px;
}

#billing_city_field::before,
#billing_city_field::after {
    content: none;
}

.woocommerce-additional-fields,
#ship-to-different-address {
    clear: both;
}

/* Checkout Order Review Column */
.checkout-summary-column .checkout-order-review {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 30px;
    position: sticky;
    top: 120px;
}

/* Checkout Order Review Table */
.checkout-order-review table.shop_table {
    border: none;
    border-collapse: collapse;
    margin: 0 0 20px;
    border-radius: 0;
}

.checkout-order-review table.shop_table thead th {
    background: var(--bg-light);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    border: none;
    border-bottom: 1px solid #eee;
    display: table-cell !important;
}

.checkout-order-review table.shop_table tbody td {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    display: table-cell !important;
}

/* Fix global style conflicts on checkout order review table */
.checkout-order-review table.shop_table .product-name {
    display: table-cell !important;
}

.checkout-order-review table.shop_table .product-name a {
    display: inline !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
}

.checkout-order-review table.shop_table .product-total {
    display: table-cell !important;
}

.checkout-order-review table.shop_table .product-subtotal {
    display: table-cell !important;
}

.checkout-order-review table.shop_table td .product-name {
    display: block !important;
}

.checkout-order-review table.shop_table tfoot th {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    border: none;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-order-review table.shop_table tfoot td {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-order-review table.shop_table .order-total th,
.checkout-order-review table.shop_table .order-total td {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: none;
    padding: 16px;
}

.checkout-order-review table.shop_table .order-total .amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Checkout Payment */
.checkout-order-review #payment {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0;
}

.checkout-order-review #payment .payment_methods {
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
}

.checkout-order-review #payment .payment_methods li {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.checkout-order-review #payment .payment_methods li:last-child {
    border-bottom: none;
}

.checkout-order-review #payment .payment_methods li label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-order-review #payment .payment_methods li input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkout-order-review #payment .payment_box {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    border: 1px solid #eee;
}

.checkout-order-review #payment div.form-row {
    padding: 20px;
    margin: 0;
}

.checkout-order-review #payment .place-order {
    padding: 20px;
}

.checkout-order-review #payment #place_order {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color), #d44a1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-order-review #payment #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(240, 90, 40, 0.3);
}

.checkout-order-review #payment .woocommerce-terms-and-conditions-wrapper {
    padding: 16px 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.checkout-order-review #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 8px;
}

/* Order Received / Thank You Page */
.order-received-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0;
}

.order-received-header {
    text-align: center;
    margin-bottom: 40px;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.order-success-icon i {
    font-size: 40px;
    color: #2e7d32;
}

.order-received-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.order-received-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

.order-failed-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #ffebee;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #f44336;
}

.order-failed-notice i {
    font-size: 24px;
    color: #c62828;
    flex-shrink: 0;
    margin-top: 2px;
}

.order-failed-notice p {
    font-size: 14px;
    color: #c62828;
    margin-bottom: 10px;
}

.order-failed-notice .pay-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-failed-notice .pay-btn:hover {
    background: var(--secondary-color);
}

/* Order Details Card */
.order-details-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 25px;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
}

.order-details-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.order-number-badge {
    padding: 6px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.order-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px;
    border-bottom: 1px solid #f5f5f5;
}

.order-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: var(--text-gray);
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.total-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.order-details-section {
    margin-bottom: 30px;
}

/* Order Details Table (from thankyou hook) */
.order-details-section table.shop_table {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    border: none;
    border-collapse: collapse;
    width: 100%;
    overflow: hidden;
}

.order-details-section table.shop_table thead th {
    background: var(--bg-light);
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    border: none;
    border-bottom: 1px solid #eee;
}

.order-details-section table.shop_table tbody td {
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    vertical-align: middle;
}

.order-details-section table.shop_table tfoot th,
.order-details-section table.shop_table tfoot td {
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.order-details-section table.shop_table tfoot tr:last-child th,
.order-details-section table.shop_table tfoot tr:last-child td {
    border-bottom: none;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}

.order-details-section table.shop_table .product-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.order-details-section table.shop_table td a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.order-details-section table.shop_table td a:hover {
    color: var(--primary-color);
}

/* Customer Details */
.order-details-section .woocommerce-customer-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 25px;
    margin-top: 25px;
}

.order-details-section .woocommerce-customer-details h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-details-section address {
    font-style: normal;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Order Actions */
.order-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.order-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-order-btn {
    background: var(--secondary-color);
    color: #fff;
}

.view-order-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.continue-shopping-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.continue-shopping-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.order-received-empty {
    text-align: center;
    padding: 40px;
}

.order-received-empty p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* My Account Page */
.my-account-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 0;
}

.my-account-header {
    text-align: center;
    margin-bottom: 40px;
}

.my-account-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.my-account-subtitle {
    color: var(--text-gray);
    font-size: 16px;
}

.my-account-content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* My Account Navigation */
.my-account-navigation {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.account-nav-header {
    padding: 25px 20px;
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid #eee;
}

.account-avatar i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 10px;
}

.account-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.account-user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.account-user-email {
    font-size: 13px;
    color: var(--text-gray);
}

.my-account-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.my-account-navigation ul li {
    margin: 0;
    border-bottom: 1px solid #f5f5f5;
}

.my-account-navigation ul li:last-child {
    border-bottom: none;
}

.my-account-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.my-account-navigation ul li a:hover {
    background: #f8f8f8;
    color: var(--primary-color);
    padding-left: 26px;
}

.my-account-navigation ul li.is-active a {
    background: #fef5f0;
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* My Account Content */
.my-account-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 30px;
    min-height: 400px;
}

.my-account-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.my-account-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

.my-account-content .woocommerce-MyAccount-orders table,
.my-account-content .woocommerce-MyAccount-downloads table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.my-account-content .woocommerce-MyAccount-orders table thead th,
.my-account-content .woocommerce-MyAccount-downloads table thead th {
    background: var(--bg-light);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    border: none;
    border-bottom: 1px solid #eee;
}

.my-account-content .woocommerce-MyAccount-orders table tbody td,
.my-account-content .woocommerce-MyAccount-downloads table tbody td {
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.my-account-content .woocommerce-address-fields input,
.my-account-content .woocommerce-address-fields select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.my-account-content .woocommerce-address-fields input:focus,
.my-account-content .woocommerce-address-fields select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.my-account-content .button {
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.my-account-content .button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.my-account-content .woocommerce-Button {
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.my-account-content .woocommerce-Button:hover {
    background: var(--secondary-color);
}

.my-account-content .edit-account fieldset {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.my-account-content .edit-account legend {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0 10px;
}

.my-account-content .woocommerce-form-row {
    margin-bottom: 18px;
}

.my-account-content .woocommerce-form-row label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.my-account-content .woocommerce-form-row input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.my-account-content .woocommerce-form-row input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.1);
}

/* ============================================ */
/* Login / Register Auth Cards                  */
/* ============================================ */

/* Center the single-column auth container */
.woocommerce #customer_login .u-column1,
.woocommerce #customer_register .u-column1 {
    float: none;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Page title treatment on account / register pages */
.woocommerce-account .page-title,
.ruffwear-register-page .page-title {
    text-align: center;
    margin-bottom: 8px;
}

.woocommerce-account .page-title::after,
.ruffwear-register-page .page-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary-color);
    margin: 14px auto 0;
}

/* Card */
.ruffwear-auth-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
    max-width: 480px;
    margin: 30px auto 60px;
    animation: ruffwearAuthIn 0.45s ease both;
}

@keyframes ruffwearAuthIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Success icon circle (confirmation pages) */
.ruffwear-auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fef0e9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

/* Card header */
.ruffwear-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.ruffwear-auth-header:has(+ .ruffwear-auth-divider) {
    margin-bottom: 0;
}

.ruffwear-auth-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #fef0e9;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.ruffwear-auth-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.25;
}

.ruffwear-auth-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Forms — reset WooCommerce core's boxed form.login / form.register style */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
}

.woocommerce .woocommerce-form-login .form-row,
.woocommerce .woocommerce-form-register .form-row,
.woocommerce form.lost_reset_password .form-row {
    margin-bottom: 18px;
    padding: 0;
}

.woocommerce .woocommerce-form-login label,
.woocommerce .woocommerce-form-register label,
.woocommerce form.lost_reset_password label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
    display: block;
    letter-spacing: 0.2px;
}

.woocommerce .woocommerce-form-login label .required,
.woocommerce .woocommerce-form-register label .required,
.woocommerce form.lost_reset_password label .required {
    color: var(--primary-color);
    font-weight: 700;
}

.woocommerce .woocommerce-form-login input[type="text"],
.woocommerce .woocommerce-form-login input[type="password"],
.woocommerce .woocommerce-form-login input[type="email"],
.woocommerce .woocommerce-form-register input[type="text"],
.woocommerce .woocommerce-form-register input[type="password"],
.woocommerce .woocommerce-form-register input[type="email"],
.woocommerce form.lost_reset_password input[type="text"],
.woocommerce form.lost_reset_password input[type="password"],
.woocommerce form.lost_reset_password input[type="email"] {
    width: 100%;
    height: 46px;
    padding: 0 15px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    box-shadow: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce .woocommerce-form-login input::placeholder,
.woocommerce .woocommerce-form-register input::placeholder,
.woocommerce form.lost_reset_password input::placeholder {
    color: #b5b5b5;
}

.woocommerce .woocommerce-form-login input:focus,
.woocommerce .woocommerce-form-register input:focus,
.woocommerce form.lost_reset_password input:focus {
    background: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
}

/* WooCommerce "show password" eye icon: input wrapper must anchor it */
.woocommerce .woocommerce-form-login .woocommerce-input-wrapper,
.woocommerce .woocommerce-form-register .woocommerce-input-wrapper,
.woocommerce form.lost_reset_password .woocommerce-input-wrapper {
    display: block;
    position: relative;
}

.woocommerce .woocommerce-form-login .show-password-input input,
.woocommerce .woocommerce-form-register .show-password-input input,
.woocommerce form.lost_reset_password .show-password-input input {
    padding-right: 42px;
}

/* Privacy policy text above the register button */
.woocommerce .woocommerce-form-register .woocommerce-privacy-policy-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 18px;
}

.woocommerce .woocommerce-form-register .woocommerce-privacy-policy-text p {
    margin: 0;
}

.woocommerce .woocommerce-form-register .woocommerce-privacy-policy-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Remember me / lost password row */
.ruffwear-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: -4px 0 18px;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin: 0;
}

.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    margin: 0;
}

.ruffwear-auth-lost {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted rgba(240, 90, 40, 0.5);
    line-height: 1.4;
}

.ruffwear-auth-lost:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Primary submit button */
.ruffwear-auth-submit {
    margin: 0 0 4px !important;
}

.woocommerce form.woocommerce-form-login button.woocommerce-form-login__submit,
.woocommerce form.woocommerce-form-register button.woocommerce-form-register__submit,
.woocommerce form.lost_reset_password button.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), #d44a1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce form.woocommerce-form-login button.woocommerce-form-login__submit:hover,
.woocommerce form.woocommerce-form-register button.woocommerce-form-register__submit:hover,
.woocommerce form.lost_reset_password button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(240, 90, 40, 0.35);
    color: #fff;
}

.woocommerce form.woocommerce-form-login button.woocommerce-form-login__submit:active,
.woocommerce form.woocommerce-form-register button.woocommerce-form-register__submit:active,
.woocommerce form.lost_reset_password button.button:active {
    transform: translateY(0);
}

/* Password strength meter (reset-password page) */
.woocommerce form.lost_reset_password .woocommerce-password-strength {
    float: none;
    clear: both;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 6px;
    margin: 10px 0 0;
}

.woocommerce form.lost_reset_password .woocommerce-password-strength.bad,
.woocommerce form.lost_reset_password .woocommerce-password-strength.short {
    background: #e2401c;
}

.woocommerce form.lost_reset_password .woocommerce-password-strength.good {
    background: #f39237;
}

.woocommerce form.lost_reset_password .woocommerce-password-strength.strong {
    background: #0e9f6e;
}

.woocommerce form.lost_reset_password .woocommerce-password-hint {
    float: none;
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-gray);
}

/* Divider ("New customer?" / "Already registered?") */
.ruffwear-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    white-space: nowrap;
}

.ruffwear-auth-divider::before,
.ruffwear-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ececec;
}

/* Secondary (outline) button */
.ruffwear-auth-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    background: transparent;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ruffwear-auth-secondary-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(240, 90, 40, 0.25);
}

.ruffwear-auth-secondary-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.ruffwear-auth-secondary-btn:hover i {
    transform: translateX(4px);
}

/* Notices on the register page */
.ruffwear-register-wrap .woocommerce-notices-wrapper .woocommerce-error,
.ruffwear-register-wrap .woocommerce-notices-wrapper .woocommerce-message,
.ruffwear-register-wrap .woocommerce-notices-wrapper .woocommerce-info {
    max-width: 480px;
    margin: 0 auto 20px;
}

/* Align notices above login / auth cards with the card width */
.woocommerce .woocommerce-notices-wrapper:has(+ #customer_login) > *,
.woocommerce .woocommerce-message:has(+ .ruffwear-auth-card),
.woocommerce .woocommerce-error:has(+ .ruffwear-auth-card),
.woocommerce .woocommerce-info:has(+ .ruffwear-auth-card) {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .ruffwear-auth-card {
        padding: 28px 20px;
        border-radius: 12px;
        margin-top: 20px;
    }

    .ruffwear-auth-title {
        font-size: 22px;
    }

    .ruffwear-auth-meta {
        align-items: flex-start;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    body .woocommerce ul.products li.product,
    body ul.products li.product {
        flex: 0 0 calc(33.333% - 17px) !important;
        max-width: calc(33.333% - 17px) !important;
    }
    
    .features-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card-image {
        height: 240px;
    }
    
    /* Hero Banner - Tablet */
    .hero-banner {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    /* Feature Banner - Tablet */
    .feature-banner {
        height: 60vh;
        min-height: 400px;
    }
    
    .feature-title {
        font-size: 34px;
    }
    
    .feature-description {
        font-size: 15px;
    }
    
    /* Cart/Checkout/MyAccount - Tablet */
    .cart-content-layout {
        grid-template-columns: 1fr 320px;
        gap: 25px;
    }
    
    .checkout-content-layout {
        grid-template-columns: 1fr 360px;
        gap: 25px;
    }
    
    .my-account-content-layout {
        grid-template-columns: 220px 1fr;
        gap: 25px;
    }
    
    .cart-page-title,
    .checkout-page-title,
    .my-account-title {
        font-size: 30px;
    }
    
    .order-total-value {
        font-size: 20px;
    }
    
    .order-total-value .amount {
        font-size: 20px;
    }
    
    /* Product Detail Page - Tablet */
    .product-main-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 30px;
    }
    
    .product-summary-column .product_title {
        font-size: 24px;
    }
    
    .product-summary-column .price {
        font-size: 26px;
    }
    
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: nowrap;
        padding: 12px 0;
        gap: 10px;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-logo {
        font-size: 22px;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-white);
        z-index: 999;
        padding: 80px 30px 30px;
        box-shadow: 5px 0 30px rgba(0,0,0,0.15);
        overflow-y: auto;
        transition: left 0.3s ease;
        order: initial;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation > ul > li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation > ul > li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 15px 0;
        font-size: 16px;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding-left: 15px;
        display: none;
        background: #f9f9f9;
        margin: 0;
    }
    
    .main-navigation .menu-item-has-children.open > .sub-menu {
        display: block;
    }
    
    .main-navigation .menu-item-has-children > a .fa-chevron-down {
        float: right;
        transition: transform 0.3s ease;
    }
    
    .main-navigation .menu-item-has-children.open > a .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .header-actions {
        margin-left: auto;
        gap: 12px;
    }
    
    .header-icon {
        font-size: 18px;
    }
    
    .cart-link {
        display: flex;
        align-items: center;
    }
    
    .header-icon .cart-count {
        top: -5px;
        right: -8px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hero Banner - Mobile */
    .hero-banner {
        height: 55vh;
        min-height: 380px;
        max-height: none;
    }
    
    .hero-banner-overlay {
        background: linear-gradient(
            0deg,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.4) 50%,
            rgba(0,0,0,0.2) 100%
        );
    }
    
    .hero-banner-content {
        text-align: center;
        padding: 0 20px;
        transform: translateY(0);
    }
    
    .hero-title {
        font-size: 28px;
        max-width: 100%;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 14px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 15px;
    }
    
    .hero-cta-button {
        font-size: 14px;
        padding: 12px 28px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Feature Banner - Mobile */
    .feature-banner {
        height: 50vh;
        min-height: 350px;
        max-height: none;
    }
    
    .feature-banner-overlay {
        background: linear-gradient(
            0deg,
            rgba(0,0,0,0.6) 0%,
            rgba(0,0,0,0.3) 50%,
            rgba(0,0,0,0.1) 100%
        );
    }
    
    .feature-banner-content {
        text-align: center;
        padding: 0 20px;
        align-items: center;
    }
    
    .feature-title {
        font-size: 24px;
        max-width: 100%;
    }
    
    .feature-description {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .feature-cta-button {
        font-size: 13px;
        padding: 10px 24px;
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .categories-section,
    .products-section {
        padding: 40px 0;
    }
    
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    body .woocommerce ul.products li.product,
    body ul.products li.product {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
    
    .category-card-image {
        height: 160px;
        font-size: 40px;
    }
    
    .category-card-content {
        padding: 16px 14px;
    }
    
    .category-card h3 {
        font-size: 15px;
    }
    
    .category-card p {
        font-size: 12px;
    }
    
    .product-card {
        border-radius: 10px;
        min-height: 0;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-content {
        padding: 14px 14px;
        min-height: 0;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .product-rating {
        margin-bottom: 8px;
    }
    
    .star-rating {
        font-size: 12px;
    }
    
    .rating-count {
        font-size: 12px;
    }
    
    .product-price .current-price,
    .product-price .sale-price {
        font-size: 16px;
    }
    
    .product-price .regular-price {
        font-size: 13px;
    }
    
    .product-card-footer {
        padding: 0 14px 14px;
    }
    
    .add-to-cart-button {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .woocommerce-products-header {
        padding: 25px 0 15px;
    }
    
    .woocommerce-products-header__title {
        font-size: 26px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    body .shop-pagination .page-numbers a,
    body .shop-pagination .page-numbers span,
    body .woocommerce-pagination a.page-numbers,
    body .woocommerce-pagination span.page-numbers {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    body .shop-pagination .page-numbers .prev,
    body .shop-pagination .page-numbers .next,
    body .woocommerce-pagination a.prev.page-numbers,
    body .woocommerce-pagination a.next.page-numbers {
        min-width: 40px !important;
    }
    
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 30px;
        border-bottom: 1px solid #333;
    }
    
    .footer-brand h3 {
        font-size: 20px;
    }
    
    /* Footer Accordion - Mobile */
    .footer-accordion {
        border-bottom: 1px solid #333;
    }
    
    .footer-accordion:last-of-type {
        border-bottom: none;
    }
    
    .footer-accordion-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        text-align: left;
        font-family: inherit;
    }
    
    .footer-accordion-toggle h4 {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #fff;
    }
    
    .footer-accordion-toggle .accordion-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: #888;
        font-size: 12px;
    }
    
    .footer-accordion-toggle .accordion-icon i {
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .footer-accordion-toggle[aria-expanded="true"] .accordion-icon i {
        transform: rotate(180deg);
        display: inline-block;
    }
    
    .footer-accordion-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-bottom: 0;
    }
    
    .footer-accordion.open .footer-accordion-panel {
        max-height: 500px;
        padding-bottom: 16px;
    }
    
    .footer-accordion.open .footer-accordion-toggle[aria-expanded="true"] {
        /* Already handled */
    }
    
    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .footer-column ul {
        padding: 0;
        margin: 0;
    }
    
    .footer-column li {
        margin-bottom: 10px;
    }
    
    .footer-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .payment-methods {
        justify-content: center;
        gap: 15px;
    }
    
    .features-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Cart/Checkout - Mobile */
    .cart-content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .checkout-content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .my-account-content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .my-account-navigation {
        position: static;
    }
    
    .cart-summary-column .cart_totals,
    .checkout-summary-column .checkout-order-review {
        position: static;
    }
    
    .cart-page-wrapper,
    .checkout-page-wrapper,
    .my-account-wrapper {
        padding: 20px 0;
    }
    
    .cart-page-header,
    .checkout-page-header,
    .my-account-header {
        margin-bottom: 25px;
    }
    
    .cart-page-title,
    .checkout-page-title,
    .my-account-title {
        font-size: 26px;
    }
    
    .cart-page-subtitle,
    .checkout-page-subtitle,
    .my-account-subtitle {
        font-size: 14px;
    }
    
    /* Cart Table - Mobile Card Layout */
    .cart-table-wrapper {
        border-radius: 12px;
        box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    }
    
    .cart-table-wrapper table.shop_table thead {
        display: none !important;
    }
    
    .cart-table-wrapper table.shop_table tbody {
        display: block !important;
    }
    
    .cart-table-wrapper table.shop_table tbody tr {
        display: grid !important;
        grid-template-columns: 90px 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 0 12px !important;
        padding: 16px !important;
        border-bottom: 1px solid #eee !important;
        position: relative !important;
        align-items: start !important;
        margin-bottom: 12px !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    .cart-table-wrapper table.shop_table tbody tr:last-of-type {
        margin-bottom: 0 !important;
    }
    
    /* Thumbnail - left of product name (row 1 only, no overlap with quantity) */
    .cart-table-wrapper table.shop_table .product-thumbnail {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        grid-row: 1 / 2 !important;
        grid-column: 1 !important;
        padding: 0 !important;
        width: 90px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .cart-table-wrapper table.shop_table .product-thumbnail::before {
        display: none !important;
        content: none !important;
    }
    
    .cart-table-wrapper table.shop_table .product-thumbnail img {
        width: 90px !important;
        height: 90px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
    }
    
    .cart-table-wrapper table.shop_table .product-thumbnail a {
        display: block !important;
        line-height: 0 !important;
    }
    
    /* Remove button - absolute positioned */
    .cart-table-wrapper table.shop_table .product-remove {
        display: block !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        padding: 0 !important;
        width: auto !important;
        text-align: right !important;
    }
    
    .cart-table-wrapper table.shop_table .product-remove::before {
        display: none !important;
    }
    
    .cart-table-wrapper .remove {
        width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
        border-radius: 50% !important;
        background: #f5f5f5 !important;
        color: #666 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    .cart-table-wrapper .remove:hover {
        background: #ff4444 !important;
        color: #fff !important;
        transform: scale(1.1) !important;
    }
    
    /* Product name - right of thumbnail */
    .cart-table-wrapper table.shop_table .product-name {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
        padding-right: 48px !important;
        text-align: left !important;
        width: auto !important;
        overflow: hidden !important;
    }
    
    .cart-table-wrapper table.shop_table .product-name::before {
        display: none !important;
    }
    
    .cart-table-wrapper table.shop_table .product-name a,
    .cart-table-wrapper table.shop_table .product-name a:link,
    .cart-table-wrapper table.shop_table .product-name a:visited {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: var(--text-dark) !important;
        word-break: break-word !important;
        text-decoration: none !important;
    }
    
    .cart-table-wrapper .product-name .variation {
        margin-top: 4px !important;
        font-size: 12px !important;
        color: var(--text-gray) !important;
        line-height: 1.4 !important;
    }
    
    .cart-table-wrapper .product-name .variation dt,
    .cart-table-wrapper .product-name .variation dd {
        font-size: 12px !important;
    }
    
    .cart-table-wrapper .product-name .variation dd {
        display: inline !important;
        margin: 0 4px 0 0 !important;
    }
    
    /* Hide price column on mobile */
    .cart-table-wrapper table.shop_table .product-price {
        display: none !important;
    }
    
    /* Quantity + Subtotal row */
    .cart-table-wrapper table.shop_table .product-quantity,
    .cart-table-wrapper table.shop_table .product-subtotal {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        font-size: 14px !important;
        text-align: left !important;
    }
    
    .cart-table-wrapper table.shop_table .product-quantity {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px dashed #e8e8e8 !important;
        width: auto !important;
        gap: 8px !important;
    }
    
    .cart-table-wrapper table.shop_table .product-quantity::before,
    .cart-table-wrapper table.shop_table .product-subtotal::before {
        content: attr(data-title) !important;
        display: inline-block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: var(--text-gray) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .cart-table-wrapper table.shop_table .product-quantity .cart-quantity-wrapper {
        margin-left: auto !important;
    }
    
    .cart-table-wrapper table.shop_table .product-quantity .qty-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    
    .cart-table-wrapper table.shop_table .product-quantity .qty-input {
        width: 44px !important;
        height: 32px !important;
        text-align: center !important;
        border: 1px solid #ddd !important;
        border-left: none !important;
        border-right: none !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        background: #fff !important;
    }
    
    .cart-table-wrapper table.shop_table .product-subtotal {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        margin-top: 6px !important;
        padding-bottom: 2px !important;
        gap: 8px !important;
        width: auto !important;
    }
    
    .cart-table-wrapper table.shop_table .product-subtotal .amount {
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        font-size: 16px !important;
    }
    
    /* Cart actions row (coupon + update) */
    .cart-table-wrapper table.shop_table tr.cart-actions-row {
        display: block !important;
        padding: 16px !important;
        border-bottom: none !important;
        background: #f9f9f9 !important;
    }
    
    .cart-table-wrapper table.shop_table tr.cart-actions-row td {
        display: block !important;
        padding: 0 !important;
        border-top: none !important;
    }
    
    .cart-actions-row .cart-actions-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 0 !important;
    }
    
    .coupon {
        margin-bottom: 0 !important;
    }
    
    .coupon-label {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .coupon-input-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .coupon-input-group input {
        min-width: auto !important;
        width: 100% !important;
        height: 44px !important;
        font-size: 16px !important;
        padding: 10px 14px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
    }
    
    .coupon-btn,
    .update-cart-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    .coupon-btn {
        background: var(--primary-color) !important;
        color: #fff !important;
        border: none !important;
    }
    
    .update-cart-btn {
        background: #fff !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .update-cart-btn:hover {
        background: #f5f5f5 !important;
    }
    
    .cart-summary-column {
        margin-top: 0 !important;
    }
    
    .cart-summary-column .cart_totals {
        padding: 22px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.06) !important;
    }
    
    .cart-totals-title {
        font-size: 18px !important;
    }
    
    .order-total-value,
    .order-total-value .amount {
        font-size: 20px !important;
    }
    
    .wc-proceed-to-checkout .checkout-button {
        font-size: 14px !important;
        padding: 14px 20px !important;
    }
    
    .checkout-steps {
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 30px !important;
    }
    
    .checkout-step {
        gap: 6px !important;
    }
    
    .checkout-step .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .checkout-step .step-label {
        font-size: 12px;
    }
    
    .checkout-step-divider {
        width: 20px;
    }
    
    .checkout-section {
        padding: 20px;
        border-radius: 10px;
    }
    
    .checkout-section-header h3 {
        font-size: 16px;
    }
    
    .checkout-summary-column .checkout-order-review {
        padding: 20px;
        border-radius: 10px;
    }
    
    .checkout-order-review table.shop_table tbody td {
        font-size: 13px;
    }
    
    /* Checkout form - mobile stacking */
    .checkout-section .form-row,
    .checkout-section .form-row-first,
    .checkout-section .form-row-last {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        clear: both !important;
    }

    #billing_city_field,
    #billing_state_field,
    #billing_postcode_field {
        padding: 0 !important;
    }
    
    .checkout-section .form-row label {
        font-size: 13px !important;
    }
    
    .checkout-section .form-row input,
    .checkout-section .form-row select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        height: 44px !important; /* Larger touch target */
    }
    
    .checkout-order-review #payment #place_order {
        font-size: 14px !important;
        padding: 16px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-action-btn {
        justify-content: center;
    }
    
    .order-details-card {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .order-details-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 18px 20px;
    }
    
    .order-detail-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        padding: 14px 20px;
    }
    
    .order-details-section table.shop_table .product-thumbnail {
        display: none;
    }
    
    .order-success-icon {
        width: 60px;
        height: 60px;
    }
    
    .order-success-icon i {
        font-size: 28px;
    }
    
    .order-received-title {
        font-size: 24px;
    }
    
    .payment-methods-icons svg {
        width: 36px;
        height: 24px;
    }
    
    .woocommerce-form-login,
    .woocommerce-form-register {
        padding: 20px;
    }
    
    .my-account-content {
        padding: 20px;
        border-radius: 10px;
    }
    
    /* Product Detail Page - Mobile */
    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-gallery-column {
        position: static;
    }
    
    .product-gallery-wrapper {
        border-radius: 12px;
    }
    
    .product-breadcrumb {
        font-size: 12px;
        padding: 15px 0;
    }
    
    .product-summary-column {
        padding-top: 0;
    }
    
    .product-summary-column .product_title {
        font-size: 22px;
    }
    
    .product-summary-column .price {
        font-size: 24px;
    }
    
    .product-summary-column .single_add_to_cart_button {
        min-width: 100%;
        font-size: 14px;
        padding: 0 20px;
        height: 48px;
    }
    
    .product-summary-column .cart {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .product-summary-column .quantity {
        justify-content: center;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 9px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .woocommerce div.product .woocommerce-tabs .panel {
        padding: 24px 0 6px;
    }
    
    .related.products h2,
    .upsells.products h2 {
        font-size: 22px;
    }
    
    .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
        width: 100%;
        display: block;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
        width: 100%;
        display: block;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .woocommerce-Tabs-panel--reviews #review_form_wrapper {
        padding: 20px;
    }
    
    .woocommerce-Tabs-panel--reviews .comment_container {
        flex-direction: column;
    }
    
    .woocommerce-Tabs-panel--reviews .comment_container img.avatar {
        width: 40px;
        height: 40px;
    }
    
    .gallery-thumb {
        flex: 0 0 55px;
        width: 55px;
        height: 55px;
    }
    
    .product-details-section {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    body .category-grid,
    body .product-grid,
    body ul.product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    body .woocommerce ul.products,
    body ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    body .woocommerce ul.products li.product,
    body ul.products li.product,
    body .woocommerce ul.products[class*="columns-"] li.product {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
        margin-right: 12px !important;
        float: none !important;
        clear: none !important;
    }
    
    /* Fix nth-child clearing for 2 columns */
    body .woocommerce ul.products li.product:nth-child(2n+1),
    body ul.products li.product:nth-child(2n+1) {
        clear: none !important;
    }
    
    body ul.product-grid li {
        width: 100% !important;
    }
    
    .product-card {
        border-radius: 10px;
        overflow: hidden;
        min-height: 0 !important;
    }
    
    .product-card-image {
        height: 175px !important;
    }
    
    .product-card-content {
        padding: 10px !important;
        flex: 1 !important;
        min-height: 0 !important;
    }
    
    .product-category {
        font-size: 9px !important;
        margin-bottom: 3px !important;
        letter-spacing: 0.5px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
        min-height: 30px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .product-rating {
        margin-bottom: 4px !important;
        min-height: 14px !important;
    }
    
    .star-rating {
        font-size: 10px !important;
    }
    
    .rating-count {
        font-size: 10px !important;
    }
    
    .product-price {
        font-size: 13px !important;
    }
    
    .product-price .current-price,
    .product-price .sale-price {
        font-size: 15px !important;
    }
    
    .product-color-swatches {
        margin-top: 4px !important;
        min-height: 22px !important;
    }
    
    .product-card-footer {
        padding: 0 10px 10px !important;
        margin-top: auto !important;
    }
    
    .product-card-footer a,
    .product-card-footer button,
    .add-to-cart-button,
    .add_to_cart_button {
        min-height: 39px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .add-to-cart-button {
        padding: 10px 12px !important;
        font-size: 12px !important;
        letter-spacing: 0.3px !important;
        border-radius: 6px !important;
    }
    
    .add-to-cart-button .button-icon {
        font-size: 12px !important;
    }
    
    .product-card-overlay {
        display: none !important;
    }
    
    /* Hero Banner - Small Mobile */
    .hero-banner {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-banner-image img {
        object-position: center 20%;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
    
    .hero-cta-button {
        font-size: 13px;
        padding: 12px 24px;
    }
    
    /* Feature Banner - Small Mobile */
    .feature-banner {
        height: 45vh;
        min-height: 320px;
    }
    
    .feature-title {
        font-size: 22px;
    }
    
    .feature-description {
        font-size: 13px;
    }
    
    .feature-badge {
        font-size: 10px;
        padding: 5px 14px;
    }
    
    .feature-cta-button {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .woocommerce-products-header__title {
        font-size: 24px;
    }
    
    body .shop-pagination .page-numbers a,
    body .shop-pagination .page-numbers span,
    body .woocommerce-pagination a.page-numbers,
    body .woocommerce-pagination span.page-numbers {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    body .shop-pagination .page-numbers .prev,
    body .shop-pagination .page-numbers .next,
    body .woocommerce-pagination a.prev.page-numbers,
    body .woocommerce-pagination a.next.page-numbers {
        min-width: 40px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-badges {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .footer-badges span {
        font-size: 12px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .payment-methods {
        gap: 6px;
    }

    .payment-methods svg {
        width: 36px;
        height: 24px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    /* Header optimization for small mobile */
    .site-header {
        padding: 8px 0;
    }
    
    .header-inner {
        padding: 0 12px;
    }
    
    .site-logo {
        font-size: 20px;
    }
    
    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-action-btn {
        width: 32px;
        height: 32px;
    }
    
    /* Hero section optimization */
    .hero-banner {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .hero-cta-button {
        width: 100%;
        max-width: 260px;
        font-size: 13px;
        padding: 12px 20px;
    }
    
    /* Category cards */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card-image {
        height: 145px;
        font-size: 32px;
    }
    
    .category-card-content {
        padding: 12px 10px;
    }
    
    .category-card h3 {
        font-size: 13px;
    }
    
    .category-card p {
        font-size: 11px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    /* Feature banner */
    .feature-banner {
        min-height: 280px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-description {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .feature-cta-button {
        font-size: 12px;
        padding: 10px 18px;
    }
    
    /* Container padding */
    .container {
        padding: 0 12px;
    }
    
    /* Sticky bar */
    .sticky-bar {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .features-section .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cart/Checkout - Small Mobile */
    .cart-page-title,
    .checkout-page-title,
    .my-account-title {
        font-size: 22px;
    }
    
    .cart-totals-title {
        font-size: 17px;
    }
    
    .order-total-value {
        font-size: 18px;
    }
    
    .order-total-value .amount {
        font-size: 18px;
    }
    
    .wc-proceed-to-checkout .checkout-button {
        font-size: 14px;
        padding: 14px 20px;
    }
    
    .checkout-order-review #payment #place_order {
        font-size: 14px;
        padding: 14px 20px;
    }
    
    .checkout-step .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .checkout-step .step-label {
        font-size: 12px;
    }
    
    .checkout-step-divider {
        width: 20px;
        margin: 0 8px;
    }
    
    .order-received-title {
        font-size: 24px;
    }
    
    .order-success-icon {
        width: 60px;
        height: 60px;
    }
    
    .order-success-icon i {
        font-size: 28px;
    }
    
    .my-account-content {
        padding: 20px;
    }
    
    /* Product Detail Page - Small Mobile */
    .product-summary-column .product_title {
        font-size: 20px;
    }
    
    .product-summary-column .price {
        font-size: 22px;
    }
    
    .product-summary-column .price del {
        font-size: 16px;
    }
    
    .product-summary-column .cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-summary-column .quantity {
        width: 100%;
        justify-content: center;
    }
    
    .product-summary-column .single_add_to_cart_button {
        width: 100%;
        min-width: auto;
        font-size: 14px;
        height: 46px;
    }
    
    .product-summary-column .qty {
        width: 50px;
        height: 46px;
    }
    
    .qty-btn {
        width: 40px;
        height: 46px;
    }
    
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumb {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
    }
    
    .product-gallery-thumbs-list {
        gap: 8px;
    }
    
    .product-breadcrumb {
        font-size: 12px;
        padding: 15px 0;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ============================================================
   Product Listing Page - Color Swatches
   ============================================================ */

.product-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
    min-height: 22px;
}

.product-color-swatches .color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    outline: none;
}

.product-color-swatches .color-swatch:hover {
    border-color: #999;
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-color-swatches .color-swatch.selected {
    border-color: var(--primary-color, #f05a28);
    box-shadow: 0 0 0 2px var(--primary-color, #f05a28), 0 2px 6px rgba(240, 90, 40, 0.3);
    transform: scale(1.1);
}

.product-color-swatches .color-swatch .swatch-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10;
    font-weight: 500;
}

.product-color-swatches .color-swatch:hover .swatch-tooltip {
    opacity: 1;
    visibility: visible;
}

.product-color-swatches .color-swatch .swatch-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
}

/* Swatch hover preview image */
.product-color-swatches .color-swatch .swatch-hover-preview {
    position: absolute;
    bottom: calc(100% + 50px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    pointer-events: none;
}

.product-color-swatches .color-swatch .swatch-hover-preview.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.product-color-swatches .color-swatch .swatch-hover-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.product-color-swatches .color-swatch .swatch-hover-preview .preview-label {
    display: block;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #f9f9f9;
}

/* Product card image transition when switching colors */
.product-card-image img {
    transition: opacity 0.15s ease;
}

/* Product card with variations - adjust spacing */
.product-card:has(.product-color-swatches) .product-name {
    margin-bottom: 4px;
}

/* Mobile adjustments for color swatches */
@media (max-width: 768px) {
    .product-color-swatches .color-swatch {
        width: 20px;
        height: 20px;
    }
    
    .product-color-swatches {
        gap: 5px;
        margin: 6px 0 10px;
    }
    
    .product-color-swatches .color-swatch .swatch-hover-preview {
        width: 100px;
        bottom: calc(100% + 45px);
    }
}

@media (max-width: 480px) {
    .product-color-swatches .color-swatch {
        width: 18px;
        height: 18px;
    }
    
    .product-color-swatches {
        gap: 4px;
    }
}

/* Loading state for add-to-cart button */
.add-to-cart-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.add-to-cart-button.loading .button-text::after {
    content: '...';
}

.add-to-cart-button.added {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

/* Product card with variation selection - highlight */
.product-card.has-variation-selected {
    border-color: var(--primary-color, #f05a28);
    box-shadow: 0 4px 15px rgba(240, 90, 40, 0.15);
}

/* ============================================
   CUSTOM PRODUCT TABS (Features, Materials, Videos, Story)
   ============================================ */

.ruffwear-features-content {
    padding: 10px 0;
}

.ruffwear-features-content .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.ruffwear-features-content .features-grid .feature-item {
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.ruffwear-features-content .features-grid .feature-item .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 24px;
    color: var(--primary-color, #F05A28);
}

.ruffwear-features-content .features-grid .feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.ruffwear-features-content .features-grid .feature-item p {
    font-size: 14px;
    color: #C6D3DE;
    line-height: 1.6;
    margin: 0;
}

.additional-features {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
}

.additional-features h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.additional-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.additional-features ul li {
    position: relative;
    padding: 8px 12px 8px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 14px;
    color: #C6D3DE;
    line-height: 1.5;
}

.additional-features ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 10px;
    color: var(--primary-color, #F05A28);
    font-size: 12px;
}

/* Materials & Care */
.ruffwear-materials-content {
    padding: 10px 0;
}

.ruffwear-materials-content .materials-section,
.ruffwear-materials-content .care-section {
    margin-bottom: 30px;
}

.ruffwear-materials-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.ruffwear-materials-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ruffwear-materials-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    color: #C6D3DE;
    line-height: 1.6;
}

.ruffwear-materials-content ul li:last-child {
    border-bottom: none;
}

.ruffwear-materials-content ul li strong {
    color: #fff;
    font-weight: 600;
}

/* Videos */
.ruffwear-videos-content {
    padding: 10px 0;
}

.ruffwear-videos-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.ruffwear-videos-content .videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ruffwear-videos-content .video-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #E7EEF4;
}

.ruffwear-videos-content .video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.ruffwear-videos-content .video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Story */
.ruffwear-story-content {
    padding: 10px 0;
}

.ruffwear-story-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.ruffwear-story-content .story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ruffwear-story-content .story-text {
    font-size: 15px;
    color: #C6D3DE;
    line-height: 1.8;
}

.ruffwear-story-content .story-text p {
    margin: 0 0 12px;
}

.ruffwear-story-content .story-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    /* Homepage trust bar only (scoped to avoid leaking into product tabs) */
    .features-section .features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
    
    .features-section .features-grid .feature-item {
        padding: 8px 4px !important;
    }
    
    .features-section .features-grid .feature-item .feature-icon {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
    
    .features-section .features-grid .feature-item h4 {
        font-size: 12px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }
    
    .features-section .features-grid .feature-item p {
        font-size: 10px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    /* Product Features tab — single-column card list, full text, no truncation */
    .ruffwear-features-content .features-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 28px !important;
    }
    
    .ruffwear-features-content .features-grid .feature-item {
        text-align: left !important;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        padding: 14px 16px !important;
    }
    
    .ruffwear-features-content .features-grid .feature-item .feature-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 0 10px !important;
        font-size: 18px !important;
    }
    
    .ruffwear-features-content .features-grid .feature-item h3 {
        font-size: 15px !important;
        line-height: 1.3 !important;
        margin: 0 0 4px !important;
    }
    
    .ruffwear-features-content .features-grid .feature-item p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }
    
    .additional-features ul {
        grid-template-columns: 1fr;
    }
    
    .ruffwear-videos-content .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .ruffwear-story-content .story-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    /* Homepage trust bar only */
    .features-section .features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    
    .features-section .features-grid .feature-item {
        padding: 10px 4px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
    
    .features-section .features-grid .feature-item .feature-icon {
        font-size: 26px !important;
        margin-bottom: 6px !important;
    }
    
    .features-section .features-grid .feature-item h4 {
        font-size: 11px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    .features-section .features-grid .feature-item p {
        font-size: 10px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }
    
    /* Product Features tab — tighten card padding on small screens */
    .ruffwear-features-content .features-grid .feature-item {
        padding: 12px 14px !important;
    }
}


/* ================================================
 * Category Banner
 * ================================================ */
.category-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.category-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 800px;
    animation: fadeInUp 0.8s ease;
}

.category-banner-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.category-banner-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-banner-cta {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--accent-color, #ff6b35);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.category-banner-cta:hover {
    background-color: var(--accent-hover, #e55a2b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .category-banner {
        min-height: 320px;
    }
    .category-banner-title {
        font-size: 36px;
    }
    .category-banner-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .category-banner {
        min-height: 250px;
    }
    .category-banner-title {
        font-size: 28px;
    }
    .category-banner-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .category-banner-cta {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-banner {
        min-height: 200px;
    }
    .category-banner-title {
        font-size: 22px;
    }
    .category-banner-description {
        font-size: 13px;
    }
}

/* Remove default products header when banner is shown */
.category-banner + #primary .woocommerce-products-header {
    display: none;
}

/* Shop toolbar spacing after banner */
.category-banner ~ #primary .shop-toolbar {
    margin-top: 0;
}

/* ================================================
 * Archive page adjustments (no banner fallback)
 * ================================================ */
#primary .woocommerce-products-header {
    margin-bottom: 20px;
    text-align: center;
}

#primary .woocommerce-products-header__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
}

#primary .woocommerce-products-header .woocommerce-result-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ================================================
 * Safe Checkout Badge (product page, under price)
 * ================================================ */
.safe-checkout-badge {
    position: relative;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    margin: 24px 0 0;
    padding: 20px 16px 14px;
    text-align: center;
}

.safe-checkout-title {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.safe-checkout-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.safe-checkout-icons svg {
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
    .safe-checkout-title {
        font-size: 13px;
    }
    .safe-checkout-icons {
        gap: 10px;
    }
}

/* =============================================
   Size Guide Page
   ============================================= */
.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 30px;
    font-size: 15px;
}

.size-guide-table th,
.size-guide-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}

.size-guide-table thead th {
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    border-bottom: none;
}

.size-guide-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.size-guide-table tbody tr:hover {
    background: #f2efe9;
}

.size-guide-tip {
    background: #f6f4ef;
    border-left: 4px solid #b98a2f;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .size-guide-table {
        font-size: 13px;
    }
    .size-guide-table th,
    .size-guide-table td {
        padding: 8px 10px;
    }
}

/* =============================================
   Static Pages (About / Contact / Policies / FAQ)
   ============================================= */
.static-page {
    background: var(--bg-white);
    padding-bottom: 70px;
}

.page-hero {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 38px 0 34px;
    margin-bottom: 44px;
}

.static-page .page-title,
.shop-page .page-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.5px;
    margin: 0;
}

.static-page .page-title::after,
.shop-page .page-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary-color);
    margin: 14px auto 0;
}

.static-page .page-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.static-page .page-body p {
    margin: 0 0 16px;
}

.static-page .page-body .page-updated {
    font-size: 13px;
    font-style: italic;
    color: #999;
    margin: -18px 0 30px;
}

.static-page .page-body h2 {
    font-size: 25px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.static-page .page-body h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background: var(--primary-color);
}

.static-page .page-body h2:first-child {
    margin-top: 0;
}

.static-page .page-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 10px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
}

.static-page .page-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 90, 40, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.static-page .page-body a:hover {
    color: #d34a1e;
    border-bottom-color: #d34a1e;
}

.static-page .page-body ul,
.static-page .page-body ol {
    margin: 0 0 18px;
    padding-left: 26px;
}

.static-page .page-body li {
    margin-bottom: 8px;
}

.static-page .page-body ul li::marker {
    color: var(--primary-color);
}

.static-page .page-body ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.static-page .page-body strong {
    color: var(--text-dark);
}

/* 通用内容表格（Shipping Policy 等） */
.static-page .page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 30px;
    font-size: 15px;
}

.static-page .page-body table th,
.static-page .page-body table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
}

.static-page .page-body table thead th {
    background: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    border-bottom: none;
}

.static-page .page-body table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.static-page .page-body table tbody tr:hover {
    background: #fdf1ea;
}

/* Contact Us 信息卡片 */
.static-page .page-body .contact-info {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 4px 22px 8px;
    margin: 0 0 18px;
    transition: box-shadow 0.2s ease;
}

.static-page .page-body .contact-info:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.static-page .page-body .contact-info h3 {
    margin: 16px 0 8px;
    padding: 0;
    background: none;
    border-left: none;
    border-radius: 0;
    font-size: 17px;
}

.static-page .page-body .contact-info p:last-child {
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .static-page .page-title,
    .shop-page .page-title {
        font-size: 28px;
    }
    .static-page .page-hero {
        padding: 26px 0 24px;
        margin-bottom: 30px;
    }
    .static-page .page-body h2 {
        font-size: 21px;
        margin-top: 34px;
    }
    .static-page .page-body h3 {
        font-size: 16px;
    }
}

/* =============================================
   Contact Us — 留言表单
   ============================================= */
.rw-contact-wrap {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 30px 24px;
    margin: 6px 0 10px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.rw-contact-alert {
    border-radius: 8px;
    padding: 13px 18px;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.rw-contact-alert--ok {
    background: #eef8ee;
    border: 1px solid #bfe3bf;
    color: #2c7a2c;
}

.rw-contact-alert--err {
    background: #fdf0ec;
    border: 1px solid #f3c4b3;
    color: #c03d15;
}

.rw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}

.rw-contact-form .rw-field {
    margin: 0 0 18px;
}

.rw-contact-form .rw-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.rw-contact-form .rw-field label em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-gray);
    font-size: 13px;
}

.rw-contact-form .rw-req {
    color: var(--primary-color);
}

.rw-contact-form input[type="text"],
.rw-contact-form input[type="email"],
.rw-contact-form select,
.rw-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 11px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rw-contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.rw-contact-form input:focus,
.rw-contact-form select:focus,
.rw-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.15);
}

.rw-contact-form input::placeholder,
.rw-contact-form textarea::placeholder {
    color: #adadad;
}

/* 蜜罐：对真人隐藏 */
.rw-contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rw-contact-submit {
    margin: 4px 0 0 !important;
}

.rw-contact-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: none;
    border-radius: 7px;
    padding: 13px 38px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.rw-contact-btn:hover {
    background: #d34a1e;
}

.rw-contact-btn:active {
    transform: translateY(1px);
}

.rw-contact-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.rw-contact-note {
    font-size: 13px !important;
    color: #999 !important;
    margin: 14px 0 0 !important;
}

@media (max-width: 640px) {
    .rw-contact-wrap {
        padding: 22px 18px 18px;
    }
    .rw-contact-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .rw-contact-btn {
        width: 100%;
    }
}
