/*
Theme Name: caseit-com
Theme URI: https://caseit.com
Description: EcomClone 自动生成的 WooCommerce 主题，克隆自 https://caseit.com
Author: EcomClone Framework
Author URI: https://github.com/ecomclone
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caseit-com
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 8.5

Generated by EcomClone Framework
Source: https://caseit.com
Generated: 2026-02-12T21:46:00.695797
*/

/* ─── EcomClone Base Reset ─────────────────────────────── */
/* 原站样式通过 assets/ 中的 CSS 文件加载 */
/* 以下仅为兜底样式 */

.ecomclone-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* WooCommerce 兼容性修正 */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product .cloned-product-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce ul.products li.product .cloned-image-wrapper {
    display: block;
}

.woocommerce ul.products li.product .cloned-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.woocommerce ul.products li.product .cloned-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    font-size: 14px;
    color: #333;
}

.woocommerce ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

.desktop-nav {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.desktop-nav__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.desktop-nav__item {
    position: relative;
}

.desktop-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.desktop-nav__dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 100;
}

.desktop-nav__item:hover > .desktop-nav__dropdown-menu {
    display: block;
}

.desktop-nav__dropdown-menu .desktop-nav__item {
    position: relative;
}

.desktop-nav__dropdown-link {
    display: block;
    padding: 6px 16px;
    font-size: 13px;
    color: #3a3a3a;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-nav__dropdown-link:hover {
    color: #000;
}

/* ─── Shop 页面布局（左侧筛选 + 右侧商品） ─────────────── */
.woocommerce-shop .shop-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.woocommerce-shop .shop-sidebar {
    background: #fff;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 6px;
}

.woocommerce-shop .products-main {
    min-width: 0;
}

/* 精简默认博客小工具样式，突出商品筛选 */
.woocommerce-shop .shop-sidebar .widget {
    margin-bottom: 16px;
}
.woocommerce-shop .shop-sidebar .widget_recent_entries,
.woocommerce-shop .shop-sidebar .widget_recent_comments,
.woocommerce-shop .shop-sidebar .widget_archives {
    display: none;
}
.woocommerce-shop .shop-sidebar input[type="search"],
.woocommerce-shop .shop-sidebar select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.woocommerce-shop .shop-sidebar button,
.woocommerce-shop .shop-sidebar .button {
    display: inline-block;
    padding: 10px 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* ─── EcomClone 搜索浮层 ─────────────────────────────── */
.ecomclone-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    background: rgba(0, 0, 0, 0.5);
}

.ecomclone-search-container {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ecomclone-search-form {
    display: flex;
    gap: 8px;
}

.ecomclone-search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.ecomclone-search-form input[type="search"]:focus {
    border-color: #333;
}

.ecomclone-search-form button[type="submit"] {
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

.ecomclone-search-form button[type="button"] {
    padding: 12px 16px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ecomclone-search-results {
    margin-top: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.ecomclone-search-results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.ecomclone-search-results a:hover {
    background: #f5f5f5;
}

.ecomclone-search-results img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.ecomclone-search-results .search-item-info {
    flex: 1;
}

.ecomclone-search-results .search-item-title {
    font-weight: 600;
    font-size: 14px;
}

.ecomclone-search-results .search-item-price {
    font-size: 13px;
    color: #666;
}

/* ─── WooCommerce 排序筛选 ───────────────────────────── */
.woocommerce-ordering {
    margin-bottom: 20px;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce-single-product .product-information__layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.woocommerce-single-product .product-information__gallery,
.woocommerce-single-product .product-information__form {
    width: 100%;
}

@media (min-width: 768px) {
    .woocommerce-single-product .product-information__layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .woocommerce-single-product .product-information__gallery {
        max-width: 50%;
        flex: 1 1 50%;
    }
    .woocommerce-single-product .product-information__form {
        flex: 1 1 50%;
    }
}

.woocommerce-single-product .product-information__details {
    display: grid;
    gap: 16px;
}

.woocommerce-single-product .product-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.woocommerce-single-product .product-information.page-width,
.woocommerce-single-product .product-after-summary.page-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.woocommerce-single-product .summary .product_title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.woocommerce-single-product .summary .price {
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.woocommerce-single-product .woocommerce-product-details__short-description {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.woocommerce-single-product form.cart {
    display: grid;
    gap: 12px;
}

.woocommerce-single-product .variations select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce-single-product .quantity input.qty {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woocommerce-single-product button.single_add_to_cart_button {
    padding: 12px 16px;
    background: #111;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.woocommerce-single-product button.single_add_to_cart_button:hover {
    background: #222;
}

.woocommerce-single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
    border-bottom: 1px solid #eee;
}

.woocommerce-single-product .woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-single-product .woocommerce-tabs ul.tabs a {
    display: inline-block;
    padding: 8px 0;
    color: #444;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce-single-product .woocommerce-tabs .panel {
    padding: 16px 0;
}

.woocommerce-single-product .related ul.products,
.woocommerce-single-product .upsells ul.products {
    margin-top: 16px;
}

.woocommerce-single-product .product-information__gallery .woocommerce-product-gallery {
    width: 100%;
}

.woocommerce-single-product .woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce-single-product .flex-control-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.woocommerce-single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.woocommerce-single-product .flex-control-nav li {
    width: 60px;
    margin: 0;
}

.woocommerce-single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 60px;
    margin: 0;
}

.woocommerce-single-product .flex-control-nav img {
    display: block;
    width: 100%;
    height: auto;
}

.woocommerce .woocommerce-result-count {
    margin-bottom: 20px;
    color: #666;
}

/* 筛选侧边栏 */
.shop-content-wrapper {
    display: flex;
    gap: 30px;
}

.shop-content-wrapper .shop-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.shop-content-wrapper .products-main {
    flex: 1;
}

@media (max-width: 768px) {
    .shop-content-wrapper {
        flex-direction: column;
    }
    .shop-content-wrapper .shop-sidebar {
        width: 100%;
    }
}

.home .slideshow-wrapper .flickity-viewport {
    height: auto !important;
}

.home .slideshow-wrapper .flickity-slider {
    position: static !important;
    transform: none !important;
}

.home .slideshow-wrapper .slideshow__slide {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    display: none;
}

.home .slideshow-wrapper .slideshow__slide.is-selected {
    display: block;
}

.home .slideshow-wrapper .slideshow__slide:first-of-type {
    display: block;
}

.home .slideshow-wrapper .hero {
    height: auto !important;
    min-height: 0 !important;
}

.home .slideshow-wrapper .hero__image-wrapper {
    position: relative !important;
}

.home .slideshow-wrapper .hero__image {
    position: static !important;
    height: auto !important;
    opacity: 1 !important;
}

.home .slideshow-wrapper .hero__title {
    line-height: 1.15;
}

.home .slideshow-wrapper .flickity-prev-next-button,
.home .slideshow-wrapper .slideshow__pause {
    display: none !important;
}
