/* Detail Page Styles */

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #333;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #999;
}

/* Product Detail Top */
.product-detail-top {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.product-gallery {
    width: 460px;
    flex-shrink: 0;
}

.main-image {
    width: 100%;
    height: 320px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumb-item {
    width: 84px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--primary-color);
}

.product-info-main {
    flex: 1;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.price-section {
    background-color: #fcfcfc;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-row {
    display: flex;
    align-items: baseline;
}

.price-row .currency {
    color: #f60;
    font-size: 20px;
    font-weight: bold;
}

.price-row .current-price {
    color: #f60;
    font-size: 36px;
    font-weight: bold;
    margin-right: 10px;
}

.price-row .old-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.discount-tag {
    background-color: #fff0f0;
    color: #f60;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
    border: 1px solid #ffdbdb;
}

.sales-info {
    color: #666;
    font-size: 14px;
}

.sales-info .separator {
    margin: 0 10px;
    color: #eee;
}

.text-warning {
    color: #ff9900;
}

.info-row {
    margin-bottom: 15px;
    display: flex;
}

.info-row .label {
    width: 80px;
    color: #999;
}

.info-row .value {
    color: #666;
}

.service-item {
    margin-right: 15px;
    color: #666;
}

.service-item i {
    color: #2ecc71;
    margin-right: 4px;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-buy-now {
    background-color: #f60;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buy-now:hover {
    background-color: #e55c00;
}

.btn-add-cart {
    background-color: #ffe8e8;
    color: #f60;
    border: 1px solid #ffdbdb;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background-color: #ffd6d6;
}

/* Detail Content Layout */
.detail-content-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0; /* Override container padding to align with other sections */
}

.detail-main {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 20px;
    min-height: 500px;
}

.detail-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* Tabs */
.detail-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 25px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    position: relative;
    top: 1px;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Blocks */
.section-block {
    margin-bottom: 30px;
}

.block-title {
    font-size: 18px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 20px;
    color: #333;
}

/* Merchant Location */
.merchant-location-box {
    display: flex;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.map-placeholder {
    width: 240px;
    height: 140px;
    flex-shrink: 0;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.location-text h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.location-text p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.location-text i {
    width: 20px;
    text-align: center;
    color: #999;
    margin-right: 5px;
}

.btn-nav {
    display: inline-block;
    margin-top: 5px;
    color: var(--primary-color);
    font-size: 14px;
}

/* Detail Table */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.detail-table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    color: #666;
}

.detail-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    color: #333;
}

.detail-table th:first-child,
.detail-table td:first-child {
    text-align: left;
    padding-left: 20px;
}

.total-row td {
    text-align: right;
    padding-right: 20px;
    background-color: #fcfcfc;
}

.total-label {
    font-size: 14px;
    color: #666;
}

.ml-20 {
    margin-left: 20px;
}

.total-value {
    font-weight: bold;
    font-size: 16px;
}

.total-value.old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: normal;
}

.total-value.price {
    color: #f60;
    font-size: 20px;
}

.image-details img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
}

.image-details p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

/* Notice List */
.notice-list {
    list-style: none;
}

.notice-list li {
    margin-bottom: 15px;
    display: flex;
}

.notice-title {
    width: 80px;
    color: #999;
    flex-shrink: 0;
}

.notice-text {
    color: #333;
    line-height: 1.5;
}

/* Review List */
.review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-meta {
    flex: 1;
}

.username {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.rating-stars {
    color: #ff9900;
    font-size: 12px;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.review-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-imgs {
    display: flex;
    gap: 10px;
}

.review-imgs img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Sidebar Cards */
.merchant-card, .recommend-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.merchant-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.merchant-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #eee;
}

.merchant-basic h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.rating {
    color: #ff9900;
    font-size: 12px;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.contact-item .label {
    color: #999;
}

.contact-item .phone {
    color: var(--primary-color);
    font-weight: bold;
}

.merchant-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    flex: 1;
    padding: 6px 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.recommend-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.recommend-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.rec-info h5 {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rec-price {
    color: #f60;
    font-weight: bold;
}
