/* Main Styling for Clothing Store */
:root {
    --primary-color: #3a3a3a;
    --secondary-color: #f8f8f8;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --dark-gray: #555;
    --white: #fff;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-bottom: 40px;
}

.carousel-inner {
    height: 500px;
}

.carousel-inner .item {
    height: 500px;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    bottom: 30%;
    text-align: center;
}

.carousel-caption h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Featured Section */
.featured-section {
    padding: 50px 0;
}

#heading-block {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

#heading-block h2 {
    font-size: 28px;
    color: #333;
    margin: 0;
    padding: 0;
}

#heading-block p {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

/* Category Filters */
.category-filters {
    margin-bottom: 30px;
}

.filter-btn {
    margin: 0 5px;
    padding: 8px 20px;
    border-radius: 20px;
    background-color: var(--light-gray);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Sorting Options */
.sorting-options {
    margin-bottom: 20px;
}

.sorting-options label {
    margin-right: 10px;
    font-weight: 600;
}

.sorting-options select {
    width: 200px;
    display: inline-block;
}

/* Product Container */
.prod-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.prod-box {
    width: 300px;
    height: 400px;
    position: relative;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.prod-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.prod-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prod-box:hover img {
    transform: scale(1.05);
}

.prod-trans {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.prod-feature {
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.chat-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    margin: 40px 0;
}

.benefit-box {
    text-align: center;
    padding: 20px;
}

.benefit-box i {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.benefit-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Clothing Header */
.clothing-header {
    margin: 40px 0;
}

.clothing-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.clothing-header p {
    font-size: 18px;
    color: var(--dark-gray);
}

/* Pagination */
.pagination-container {
    margin: 40px 0;
}

.pagination > li > a {
    color: var(--primary-color);
    border-color: #ddd;
}

.pagination > .active > a {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modal Styling */
.modal {
    z-index: 1050;
}

.modal-content {
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .carousel-caption h1 {
        font-size: 36px;
    }
    
    .carousel-caption p {
        font-size: 18px;
    }
    
    .benefit-box {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .carousel-inner, .carousel-inner .item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    #heading-block h2 {
        font-size: 28px;
    }
    
    .prod-box {
        width: 100%;
        max-width: 300px;
    }
    
    .sorting-options {
        text-align: center;
    }
}

/* Footer Styling */
footer {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

footer h2 {
    color: var(--white) !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
}

footer a {
    color: #ccc !important;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white) !important;
    text-decoration: none !important;
}

.footer-bottom {
    background-color: #2a2a2a !important;
    padding: 15px 0 !important;
}

/* Navbar Styling */
.navbar-inverse {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.navbar-nav > li > a {
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.navbar-form .form-control {
    border-radius: 20px 0 0 20px !important;
}

.navbar-form .btn {
    border-radius: 0 20px 20px 0 !important;
}

/* 通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-12 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

/* 内容消息样式 */
.content-message {
    text-align: center;
    padding: 50px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 30px;
}

.content-message p {
    font-size: 18px;
    color: #6c757d;
}
