/**
 * CSS cho các giao diện gian hàng tùy chỉnh
 */

/* Shop Page Background */
body.shop-page {
    min-height: 100vh;
    background-color: #ffffff;
}

/* Shop Page Border */
body.shop-page-border {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Shop Container */
.shop-container {
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Theme Widgets */
.theme-widget {
    margin-bottom: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.theme-widget .widget-title {
    display: none;
}

.theme-widget .widget-content {
    padding: 0;
}

/* Giao diện chung */
.shop-custom-header,
.shop-custom-footer {
    margin: 20px 0;
}

.shop-banner img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.shop-logo {
    max-width: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Widget Styles */
.widget {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.widget-title h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.widget-content {
    padding: 15px;
}

/* Banner Widget */
.banner-widget img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

/* Products Widget */
.products-widget .card {
    height: 100%;
    transition: all 0.3s ease;
}

.products-widget .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.products-widget .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Categories Widget */
.categories-widget .list-group-item {
    transition: all 0.3s ease;
}

.categories-widget .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Featured Products Widget */
.featured-products-widget .card {
    transition: all 0.3s ease;
}

.featured-products-widget .card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Testimonials Widget */
.testimonials-widget .carousel-item {
    min-height: 200px;
}

.testimonials-widget .carousel-control-prev,
.testimonials-widget .carousel-control-next {
    width: 10%;
}

/* About Widget */
.about-widget p {
    line-height: 1.6;
}

/* Contact Widget */
.contact-widget li {
    margin-bottom: 10px;
}

.contact-widget i {
    width: 20px;
    text-align: center;
}

/* Social Widget */
.social-widget .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-widget .btn:hover {
    transform: translateY(-3px);
}

/* Search Widget */
.search-widget .form-control:focus {
    box-shadow: none;
}

/* Filter Widget */
.filter-widget .form-select {
    cursor: pointer;
}

/* Shop Info Widget */
.shop-info-widget img {
    border: 3px solid #f8f9fa;
}

/* Footer Column */
.footer-column {
    margin-bottom: 20px;
}

/* Layout danh sách */
.shop-layout-list .product-list-item {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.shop-layout-list .product-list-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shop-layout-list .product-list-item img {
    max-height: 100px;
    object-fit: cover;
}

/* Layout lưới */
.shop-layout-grid .product-card {
    transition: all 0.3s ease;
    height: 100%;
}

.shop-layout-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.shop-layout-grid .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Layout hiện đại */
.shop-layout-modern .featured-product {
    margin-bottom: 30px;
}

.shop-layout-modern .featured-product img {
    height: 300px;
    object-fit: cover;
}

.shop-layout-modern .secondary-product {
    margin-bottom: 15px;
}

.shop-layout-modern .secondary-product img {
    height: 120px;
    object-fit: cover;
}

/* Layout Editor Styles */
.layout-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.section-header {
    padding: 10px 15px;
    background-color: #e9ecef;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.section-content {
    min-height: 50px;
    padding: 15px;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
}

.widget-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: grab;
    transition: all 0.2s;
}

.widget-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-container {
    position: relative;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.widget-container:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-container .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.widget-container .widget-title {
    font-weight: 500;
    margin: 0;
}

.widget-container .widget-actions {
    display: flex;
}

.widget-container .widget-actions button {
    padding: 2px 5px;
    margin-left: 5px;
    font-size: 12px;
}

.widget-container .widget-content {
    padding: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-layout-list .product-list-item img {
        margin-bottom: 15px;
    }
    
    .shop-layout-modern .featured-product img,
    .shop-layout-modern .secondary-product img {
        height: auto;
    }
    
    .widget-title h5 {
        font-size: 1rem;
    }
    
    .footer-column {
        margin-bottom: 30px;
    }
}