/* Shop页面样式覆盖 - 基于menu_03.html模板 */

/* 隐藏不需要的元素 */
/* 隐藏opening hours和holiday按钮 */
button[data-target="#modal_opening_hours"],
button[data-target="#modal_holiday"],
.col-xs-12[style*="margin-bottom:20px"] button[data-toggle="modal"] {
    display: none !important;
}

/* 隐藏delivery/collection时间提示条 */
.col-xs-12.text-right[style*="margin-top:-30px"],
.col-sm-12.text-right[style*="margin-top:-30px"] {
    display: none !important;
}

/* 移除 breadcrumb 背景图片 */
.breadcrumb_area {
    background: none !important;
    background-color: #f8f9fa !important;
    padding: 30px 0 !important;
}

/* 搜索框容器样式 */
#search_dish_div {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    margin-bottom: 25px !important;
}

#search_dish {
    border: 2px solid #e5e5e5 !important;
    border-radius: 50px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
}

#search_dish:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
}

#search_button,
.clear_search {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
}

#search_button:hover,
.clear_search:hover {
    background: #080521 !important;
    transform: scale(1.05) !important;
}

/* 种类菜单容器样式 */
.col-md-12[style*="margin-bottom:38px"] > div[style*="text-center"] {
    background: #fff !important;
    border-radius: 10px !important;
    padding: 25px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* 种类标题样式 */
.col-xs-12.col-sm-6 > div[onclick^="menu"] {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 5px !important;
    margin-bottom: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    border: 2px solid transparent !important;
}

.col-xs-12.col-sm-6 > div[onclick^="menu"]:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* 种类项计数标签 */
.col-xs-12.col-sm-6 > div[onclick^="menu"] span[style*="font-size:12px"] {
    background: rgba(8, 5, 33, 0.1) !important;
    padding: 2px 10px !important;
    border-radius: 15px !important;
    margin-left: 8px !important;
}

.col-xs-12.col-sm-6 > div[onclick^="menu"]:hover span[style*="font-size:12px"] {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 隐藏默认的hr分隔线 */
.col-xs-12.col-sm-6 > hr {
    display: none !important;
}

/* 产品容器样式 */
.shop-product-item {
    background: #fff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    transition: all 0.3s !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
}

.shop-product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    transform: translateY(-5px) !important;
}

/* 产品图片区域 */
.shop-product-item .shop-product-img {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.shop-product-item .shop-product-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shop-product-item .shop-product-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 没有图片时的占位符 */
.shop-product-item .shop-product-img.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-item .shop-product-img.no-image::before {
    content: attr(data-name);
    position: absolute;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

/* 产品信息区域 */
.shop-product-item .shop-product-text {
    padding: 20px !important;
    width: 100%;
}

.shop-product-item .shop-product-text .title {
    display: block !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #080521 !important;
    margin-bottom: 10px !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.shop-product-item .shop-product-text .title:hover {
    color: var(--primary-color) !important;
}

.shop-product-item .shop-product-text .description {
    display: block !important;
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
    max-height: 3.2em;
    overflow: hidden;
}

/* 价格样式 */
.shop-product-item .shop-product-price {
    display: block !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 15px !important;
    float: none !important;
}

.shop-product-item .shop-product-price span[style*="text-decoration: line-through"] {
    font-size: 14px !important;
    color: #999 !important;
    margin-right: 8px !important;
}

/* 按钮区域 */
.shop-product-item .shop-product-footer {
    padding: 0 20px 20px 20px !important;
    width: 100%;
    text-align: center !important;
}

.shop-product-item .shop-add-to-cart {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
}

.shop-product-item .shop-add-to-cart:hover {
    background: #080521 !important;
    color: #fff !important;
    transform: scale(1.02) !important;
}

/* 侧边栏样式 */
.shop-sidebar {
    position: sticky;
    top: 100px;
}

.shop-sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.shop-sidebar-widget h2 {
    font-size: 20px;
    font-weight: 700;
    color: #080521;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* 搜索框 */
.shop-search-form {
    position: relative;
}

.shop-search-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}

.shop-search-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.shop-search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.shop-search-form button:hover {
    background: #080521;
}

/* 分类列表 */
.shop-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-category-list li {
    margin-bottom: 12px;
}

.shop-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #080521;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.shop-category-list li a:hover,
.shop-category-list li a.active {
    background: var(--primary-color);
    color: #fff;
}

.shop-category-list li a span {
    background: rgba(8, 5, 33, 0.1);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.shop-category-list li a:hover span,
.shop-category-list li a.active span {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .shop-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .shop-product-item .shop-product-text .title {
        font-size: 16px !important;
    }
    
    .shop-product-item .shop-product-price {
        font-size: 16px !important;
    }
}


/* 产品网格样式 - 匹配menu_03.html的single_menu */
.shop-product-grid {
    margin-bottom: 30px;
}

.shop-product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.shop-product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* 产品图片区域 */
.shop-product-img {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 ratio */
    background: #f8f9fa;
}

.shop-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 没有图片时的占位符 */
.shop-product-img.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-img.no-image::before {
    content: attr(data-name);
    position: absolute;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

/* 产品信息区域 */
.shop-product-text {
    padding: 20px;
}

.shop-product-text .category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.shop-product-text .title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #080521;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.shop-product-text .title:hover {
    color: var(--primary-color);
}

.shop-product-text .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 价格和按钮 */
.shop-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.shop-product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.shop-product-price del {
    font-size: 16px;
    color: #999;
    margin-left: 8px;
}

.shop-add-to-cart {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.shop-add-to-cart:hover {
    background: #080521;
    color: #fff;
    transform: scale(1.05);
}

/* 侧边栏样式 */
.shop-sidebar {
    position: sticky;
    top: 80px;
}

.shop-sidebar-widget {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.shop-sidebar-widget h2 {
    font-size: 20px;
    font-weight: 700;
    color: #080521;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* 搜索框 */
.shop-search-form {
    position: relative;
}

.shop-search-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}

.shop-search-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.shop-search-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.shop-search-form button:hover {
    background: #080521;
}

/* 分类列表 */
.shop-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-category-list li {
    margin-bottom: 12px;
}

.shop-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #080521;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.shop-category-list li a:hover,
.shop-category-list li a.active {
    background: var(--primary-color);
    color: #fff;
}

.shop-category-list li a span {
    background: rgba(8, 5, 33, 0.1);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.shop-category-list li a:hover span,
.shop-category-list li a.active span {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 991px) {
    .shop-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .shop-product-text .title {
        font-size: 16px;
    }
    
    .shop-product-price {
        font-size: 18px;
    }
    
    .shop-product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-add-to-cart {
        width: 100%;
        text-align: center;
    }
}
