/*
Theme Name: New Theme
Theme URI: http://example.com/new-theme/
Author: Your Name
Author URI: http://example.com/
Description: A custom theme for fashion store
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: new-theme
*/

/* Import Plus Jakarta Sans font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: #D9EAFD;
    color: #121417;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Section */
.site-header {
    margin-bottom: 20px;
}

.site-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: rgba(188, 204, 220, 0.5);
    border-radius: 10px;
    margin-top: 20px;
}

.menu-icon, .cart-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon img, .cart-icon img {
    max-width: 100%;
    height: auto;
}

.shop-text {
    font-weight: 700;
    font-size: 16px;
    color: #121417;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    text-align: center;
}

/* Title Sections */
.section-title {
    font-weight: 700;
    font-size: 24px;
    color: #121417;
    text-align: center;
    padding: 20px 0 16px;
    clear: both;
}

/* Title Container */
.title-container {
    text-align: center;
    padding: 30px 0 20px;
}

.main-title {
    font-weight: 700;
    font-size: 24px;
    color: #121417;
    line-height: 30px;
    margin: 0;
}

.sub-title {
    font-weight: 700;
    font-size: 24px;
    color: #121417;
    line-height: 30px;
    margin: 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 0 16px;
    justify-items: center;
}

/* 在移动端隐藏第7个及之后的商品 */
.category-card:nth-child(n+7) {
    display: none;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    width: 173px;
}

.category-image-container {
    width: 173px;
    height: 231px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-image-container:hover,
.category-image-container:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-name {
    font-weight: 500;
    font-size: 14px;
    color: #121417;
    padding: 8px 0;
    text-align: center;
}

/* See All Button */
.see-all-button {
    display: flex;
    justify-content: center;
    padding: 12px 0;
    margin: 10px 0 20px;
}

.see-all-link {
    background-color: #F2F2F5;
    color: #121417;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.see-all-link:hover,
.see-all-link:active {
    background-color: #E5E5E9;
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Cover Cards */
.cover-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding: 0 0 16px;
    scrollbar-width: thin;
    scrollbar-color: #BCCCE0 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
}

.cover-grid::-webkit-scrollbar {
    height: 6px;
}

.cover-grid::-webkit-scrollbar-track {
    background: transparent;
}

.cover-grid::-webkit-scrollbar-thumb {
    background-color: #BCCCE0;
    border-radius: 6px;
}

.cover-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
}

.cover-image-container {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-image-container:hover,
.cover-image-container:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-content {
    padding: 8px 0;
    width: 240px;
}

.cover-title {
    font-weight: 600;
    font-size: 16px;
    color: #121417;
}

.cover-description {
    font-weight: 400;
    font-size: 13px;
    color: #667582;
    margin-top: 2px;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .section-title {
        font-size: 28px;
        padding: 30px 0 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 30px;
        justify-items: center;
        max-width: 720px;
        margin: 0 auto;
    }
    
    .category-card {
        width: 213px;
        margin-bottom: 15px;
    }
    
    /* 在桌面端显示所有商品 */
    .category-card:nth-child(n+7) {
        display: flex;
    }
    
    .category-image-container {
        width: 213px;
        height: 283px;
    }
    
    .cover-grid {
        padding: 0 0 20px;
        gap: 20px;
    }
    
    .main-title, .sub-title {
        font-size: 28px;
    }
    
    .shop-text {
        font-size: 18px;
        max-width: none;
    }
}

/* Footer Styles */
.site-footer {
    background-color: rgba(188, 204, 220, 0.5);
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
}

.site-info {
    font-size: 14px;
    color: #667582;
}

/* 保留旧的样式类以兼容性 */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: rgba(188, 204, 220, 0.5);
    border-radius: 10px;
    margin-top: 20px;
}

.shop-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-icon img {
    max-width: 100%;
    height: auto;
} 