/**
 * Shortcodes Styles for B2B Product Plugin
 */

/* General Shortcode Styles */
.b2b-categories-carousel,
.b2b-products-carousel,
.b2b-contact-form-shortcode {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Categories Carousel */
.b2b-categories-carousel {
    padding: 20px 0;
}

/* Subcategory Carousel */
.b2b-subcategory-carousel-wrapper {
    position: relative;
}

/* Loading Animation Styles */
.b2b-subcategory-carousel-wrapper {
    visibility: hidden;
    transition: visibility 0s linear 0.1s, opacity 0.3s ease;
    opacity: 0;
}

.b2b-subcategory-carousel-wrapper.swiper-loaded {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.b2b-subcategory-carousel-wrapper .swiper-container {
    overflow: hidden;
    padding: 10px 0 10px 0;
    width: 100%;
}

.b2b-subcategory-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    transform: translate3d(0px, 0px, 0px);
}

/* 轮播图样式优化 - 不破坏Swiper功能 */
.b2b-subcategory-carousel-wrapper .swiper-wrapper {
    cursor: grab;
}

/* 让Swiper控制幻灯片宽度，不强制覆盖 */
.b2b-subcategory-carousel-wrapper .swiper-slide {
    flex-shrink: 0;
    height: auto;
    display: flex;
    /* 移除固定宽度，让Swiper的breakpoints配置生效 */
}

/* 只在桌面端设置默认宽度 */
@media (min-width: 1025px) {
    .b2b-subcategory-carousel-wrapper .swiper-slide {
        width: 280px;
        margin-right: 15px;
    }
}

.subcategory-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.subcategory-card:visited,
.subcategory-card:focus {
    color: inherit;
    text-decoration: none;
}

.subcategory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--b2b-primary-color, #007cba);
}

.subcategory-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.subcategory-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-thumbnail img {
    transform: scale(1.1);
}

.subcategory-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #6c757d;
}

.subcategory-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.subcategory-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.4;
    text-align: center;
}

.subcategory-actions {
    text-align: center;
    margin-top: auto;
}

.subcategory-actions .view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--b2b-primary-color, #007cba);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--b2b-primary-color, #007cba);
}

.subcategory-actions .view-more-btn:hover {
    border-color: var(--b2b-primary-hover, #005a87);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.subcategory-actions .view-more-btn svg {
    transition: transform 0.3s ease;
}

.subcategory-actions .view-more-btn:hover svg {
    transform: translateX(3px);
}

/* Swiper Navigation - 正方形按钮 */
.b2b-subcategory-carousel-wrapper .swiper-button-next,
.b2b-subcategory-carousel-wrapper .swiper-button-prev {
    color: var(--b2b-primary-color, #007cba);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 0; /* 正方形 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -22px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.b2b-subcategory-carousel-wrapper .swiper-button-next {
    right: 10px;
}

.b2b-subcategory-carousel-wrapper .swiper-button-prev {
    left: 10px;
}

/* Hover效果：图标和背景颜色切换 */
.b2b-subcategory-carousel-wrapper .swiper-button-next:hover,
.b2b-subcategory-carousel-wrapper .swiper-button-prev:hover {
    background: var(--b2b-primary-color, #007cba);
    color: #ffffff;
    border-color: var(--b2b-primary-color, #007cba);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
}

.b2b-subcategory-carousel-wrapper .swiper-button-next:hover::after,
.b2b-subcategory-carousel-wrapper .swiper-button-prev:hover::after {
    color: #ffffff !important;
}

.b2b-subcategory-carousel-wrapper .swiper-button-next::after,
.b2b-subcategory-carousel-wrapper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    transition: color 0.3s ease;
}

/* Swiper Pagination */
.b2b-subcategory-carousel-wrapper .swiper-pagination {
    bottom: 10px;
}

.b2b-subcategory-carousel-wrapper .swiper-pagination-bullet {
    background: var(--b2b-primary-color, #007cba);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.b2b-subcategory-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design for Subcategory Carousel */
@media (max-width: 768px) {
    .subcategory-thumbnail {
        height: 150px;
    }
    
    .subcategory-title {
        font-size: 14px;
    }
    
    .subcategory-actions .view-more-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .b2b-subcategory-carousel-wrapper .swiper-button-next,
    .b2b-subcategory-carousel-wrapper .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .b2b-subcategory-carousel-wrapper .swiper-button-next::after,
    .b2b-subcategory-carousel-wrapper .swiper-button-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .subcategory-content {
        padding: 15px;
    }
    
    .subcategory-thumbnail {
        height: 350px;
    }
    
    .subcategory-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .subcategory-actions .view-more-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

.categories-grid {
    gap: 20px;
}

.category-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--b2b-primary-color, #007cba);
}

.category-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-thumbnail img {
    transform: scale(1.05);
}

.category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #6c757d;
}

.category-content {
    padding: 20px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
    line-height: 1.4;
}

.category-count {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.category-description {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 15px;
}

.category-actions {
    margin-top: 15px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--b2b-primary-color, #007cba);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-more-btn:hover {
    background: var(--b2b-primary-hover, #005a87);
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
    transform: translateX(3px);
}

/* Products Carousel */
.b2b-products-carousel {
    padding: 20px 0;
}

/* Product Carousel Wrapper */
.b2b-product-carousel-wrapper {
    position: relative;
}

/* Loading Animation Styles for Product Carousel */
.b2b-product-carousel-wrapper {
    visibility: hidden;
    transition: visibility 0s linear 0.1s, opacity 0.3s ease;
    opacity: 0;
}

.b2b-product-carousel-wrapper.swiper-loaded {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.b2b-product-carousel-wrapper .swiper-container {
    overflow: hidden;
    padding: 10px 0 10px 0;
    width: 100%;
}

.b2b-product-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    transform: translate3d(0px, 0px, 0px);
    cursor: grab;
}

/* 让Swiper控制幻灯片宽度，不强制覆盖 */
.b2b-product-carousel-wrapper .swiper-slide {
    flex-shrink: 0;
    height: auto;
    display: flex;
    /* 移除固定宽度，让Swiper的breakpoints配置生效 */
}

/* Product Carousel Card Styles - 完全匹配归档页面样式 */
.b2b-product-carousel-wrapper .product-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.b2b-product-carousel-wrapper .product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: var(--b2b-primary-color, #007cba);
}

.b2b-product-carousel-wrapper .product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
}

.b2b-product-carousel-wrapper .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b2b-product-carousel-wrapper .product-item:hover .product-image img {
    transform: scale(1.05);
}

.b2b-product-carousel-wrapper .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.b2b-product-carousel-wrapper .product-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.b2b-product-carousel-wrapper .product-info h3 a,
.b2b-product-carousel-wrapper .product-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.b2b-product-carousel-wrapper .product-info h3 a:hover,
.b2b-product-carousel-wrapper .product-title-link:hover {
    color: var(--b2b-primary-color, #007cba);
}

.b2b-product-carousel-wrapper .product-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.b2b-product-carousel-wrapper .item-no {
    display: block;
    font-size: 14px;
    color: #666;
}

.b2b-product-carousel-wrapper .item-no strong {
    color: #333;
    font-weight: 600;
}

.b2b-product-carousel-wrapper .no-item-no {
    color: #999;
    font-style: italic;
}

.b2b-product-carousel-wrapper .product-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 10px;
}

.b2b-product-carousel-wrapper .product-actions .btn {
    display: inline-block;
    padding: 0px; /* match archive/category buttons */
    background: var(--b2b-secondary-color, #6c757d);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none; /* remove uppercase for consistency */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1; /* fill available width similar to archive */
}

.b2b-product-carousel-wrapper .product-actions .btn:hover {
    background: var(--b2b-secondary-hover, #545b62);
    transform: translateY(-1px);
}

.b2b-product-carousel-wrapper .inquire-btn {
    background: var(--b2b-secondary-color, #6c757d);
}

.b2b-product-carousel-wrapper .inquire-btn:hover {
    background: var(--b2b-secondary-hover, #545b62);
}

/* Product Carousel Navigation */
.b2b-product-carousel-wrapper .swiper-button-next,
.b2b-product-carousel-wrapper .swiper-button-prev {
    color: var(--b2b-primary-color, #007cba);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    top: 50%;
    margin-top: -22px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.b2b-product-carousel-wrapper .swiper-button-next {
    right: 10px;
}

.b2b-product-carousel-wrapper .swiper-button-prev {
    left: 10px;
}

.b2b-product-carousel-wrapper .swiper-button-next:hover,
.b2b-product-carousel-wrapper .swiper-button-prev:hover {
    background: var(--b2b-primary-color, #007cba);
    color: #ffffff;
    border-color: var(--b2b-primary-color, #007cba);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
}

.b2b-product-carousel-wrapper .swiper-button-next:hover::after,
.b2b-product-carousel-wrapper .swiper-button-prev:hover::after {
    color: #ffffff !important;
}

.b2b-product-carousel-wrapper .swiper-button-next::after,
.b2b-product-carousel-wrapper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    transition: color 0.3s ease;
}

/* Product Carousel Pagination */
.b2b-product-carousel-wrapper .swiper-pagination {
    position: static;
    bottom: auto;
    margin-top: 12px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Keep bullets styling */
.b2b-product-carousel-wrapper .swiper-pagination-bullet {
    background: var(--b2b-secondary-color, #6c757d) !important;
    opacity: 0.35;
    transition: all 0.3s ease;
}

.b2b-product-carousel-wrapper .swiper-pagination-bullet-active {
    background: var(--b2b-secondary-color, #6c757d) !important;
    opacity: 1;
    transform: scale(1.15);
}

/* Subcategory Carousel Pagination */
.b2b-subcategory-carousel-wrapper .swiper-pagination {
    position: static;
    bottom: auto;
    margin-top: 12px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.b2b-subcategory-carousel-wrapper .swiper-pagination-bullet {
    background: var(--b2b-secondary-color, #6c757d) !important;
    opacity: 0.35;
    transition: all 0.3s ease;
}

.b2b-subcategory-carousel-wrapper .swiper-pagination-bullet-active {
    background: var(--b2b-secondary-color, #6c757d) !important;
    opacity: 1;
    transform: scale(1.15);
}

/* Product Carousel Overlay Actions - 使用与归档页面相同的样式 */
.b2b-product-carousel-wrapper .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.b2b-product-carousel-wrapper .product-item:hover .product-overlay {
    opacity: 1;
}

.b2b-product-carousel-wrapper .overlay-actions {
    display: flex;
    gap: 10px;
}

.b2b-product-carousel-wrapper .overlay-actions .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Responsive Design for Product Carousel */
@media (max-width: 768px) {
    .b2b-product-carousel-wrapper .product-image {
        height: 150px;
    }
    
    .b2b-product-carousel-wrapper .product-title {
        font-size: 13px;
    }
    
    .b2b-product-carousel-wrapper .product-excerpt {
        font-size: 11px;
    }
    
    .b2b-product-carousel-wrapper .swiper-button-next,
    .b2b-product-carousel-wrapper .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .b2b-product-carousel-wrapper .swiper-button-next::after,
    .b2b-product-carousel-wrapper .swiper-button-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .b2b-product-carousel-wrapper .product-content {
        padding: 12px;
    }
    
    .b2b-product-carousel-wrapper .product-image {
        height: 180px;
    }
    
    .b2b-product-carousel-wrapper .product-title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .b2b-product-carousel-wrapper .product-excerpt {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .b2b-product-carousel-wrapper .product-price {
        font-size: 13px;
    }
}

.products-grid {
    gap: 20px;
}

.product-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--b2b-primary-color, #007cba);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #6c757d;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-inquire,
.btn-add-quote {
    border: none;
    background: var(--b2b-primary-color, #007cba);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.btn-inquire:hover,
.btn-add-quote:hover {
    background: var(--b2b-primary-hover, #005a87);
    transform: scale(1.1);
}

.btn-add-quote {
    background: var(--b2b-secondary-color, #6c757d) !important;
}

.btn-add-quote:hover {
    background: var(--b2b-secondary-hover, #545b62) !important;
}

.product-code {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--b2b-primary-color, #007cba);
}

.product-excerpt {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--b2b-primary-color, #007cba);
    margin-top: 10px;
}

/* Contact Form Shortcode */
.b2b-contact-form-shortcode {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.contact-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.b2b-contact-form {
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--b2b-primary-color, #007cba);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--b2b-primary-color, #007cba);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--b2b-primary-hover, #005a87);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .b2b-contact-form-shortcode {
        padding: 20px;
    }
    
    .contact-form-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .category-thumbnail,
    .product-image {
        height: 150px;
    }
    
    .b2b-contact-form-shortcode {
        padding: 15px;
    }
}

/* Loading States */
.shortcode-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6c757d;
}

.shortcode-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--b2b-primary-color, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.shortcode-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Success States */
.shortcode-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
}

/* Accessibility */
.view-more-btn:focus,
.btn-inquire:focus,
.btn-add-quote:focus,
.submit-btn:focus {
    outline: 2px solid var(--b2b-primary-color, #007cba);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .category-card,
    .product-card,
    .b2b-contact-form-shortcode {
        border-width: 2px;
    }
    
    .view-more-btn,
    .btn-inquire,
    .btn-add-quote,
    .submit-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .product-card,
    .view-more-btn,
    .btn-inquire,
    .btn-add-quote,
    .submit-btn,
    .product-image img,
    .category-thumbnail img {
        transition: none;
    }
    
    .category-card:hover,
    .product-item:hover {
        transform: none;
    }
    
    .shortcode-loading::after {
        animation: none;
    }
}

/* Carousel inquire-related buttons: transparent default, primary on hover */
.b2b-product-carousel-wrapper .product-actions .inquire-btn,
.b2b-product-carousel-wrapper .product-actions .add-to-inquire-btn,
.b2b-product-carousel-wrapper .btn-inquire,
.b2b-product-carousel-wrapper .btn-add-quote {
  background-color: transparent !important;
  color: var(--b2b-primary-color) !important;
  border: 1px solid var(--b2b-primary-color);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.b2b-product-carousel-wrapper .product-actions .inquire-btn:hover,
.b2b-product-carousel-wrapper .product-actions .add-to-inquire-btn:hover,
.b2b-product-carousel-wrapper .btn-inquire:hover,
.b2b-product-carousel-wrapper .btn-add-quote:hover,
.b2b-product-carousel-wrapper .product-actions .inquire-btn:focus,
.b2b-product-carousel-wrapper .product-actions .add-to-inquire-btn:focus,
.b2b-product-carousel-wrapper .btn-inquire:focus,
.b2b-product-carousel-wrapper .btn-add-quote:focus,
.b2b-product-carousel-wrapper .product-actions .inquire-btn:active,
.b2b-product-carousel-wrapper .product-actions .add-to-inquire-btn:active,
.b2b-product-carousel-wrapper .btn-inquire:active,
.b2b-product-carousel-wrapper .btn-add-quote:active {
  background-color: var(--b2b-primary-color) !important;
  color: #fff !important;
  border-color: var(--b2b-primary-color);
}