

:root {
    --shops-navy: #064469;
    --shops-blue: #006b99;
    --shops-green: #07893e;
    --shops-green-hover: #056c35;
    --shops-orange: #e65100;
    --shops-ink: #173c4e;
    --shops-muted: #5d7079;
    --shops-bg-light: #f4f9fb;
    --shops-border: #d4e5ec;
}

/* Base Wrapper */
.shops-container {
    padding: 20px 0 40px;
    color: var(--shops-ink);
}

/* Header & Filter Bar */
.shops-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1eff5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.shops-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--shops-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shops-title:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 26px;
    background: var(--shops-green);
    border-radius: 4px;
}

.shops-cat-desc {
    width: 100%;
    color: var(--shops-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* Hotline Banner */
.shops-hotline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(90deg, #064469, #006b99);
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(6, 68, 105, 0.2);
    transition: all 0.2s ease;
}

.shops-hotline-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 68, 105, 0.3);
    color: #fff !important;
}

.shops-hotline-banner .hotline-text {
    font-size: 14px;
    font-weight: 600;
}

.shops-hotline-banner .hotline-number {
    font-size: 16px;
    font-weight: 800;
    color: #ffe600;
}

/* Category Filter Tabs */
.shops-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.shops-cat-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    background: var(--shops-bg-light);
    color: var(--shops-ink);
    border: 1px solid var(--shops-border);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.shops-cat-tab:hover,
.shops-cat-tab.active {
    background: var(--shops-green);
    color: #fff;
    border-color: var(--shops-green);
    box-shadow: 0 4px 10px rgba(7, 137, 62, 0.25);
    transform: translateY(-1px);
}

/* Product Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

@media (max-width: 1100px) {
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .shops-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.shops-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5f0f5;
    box-shadow: 0 4px 14px rgba(4, 71, 98, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

.shops-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(4, 71, 98, 0.16);
    border-color: #badbe7;
}

.shops-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f7f9;
}

.shops-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shops-card:hover .shops-card-thumb img {
    transform: scale(1.06);
}

.shops-badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #e65100, #ff7043);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.35);
}

.shops-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shops-card-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--shops-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    text-decoration: none;
}

.shops-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--shops-navy);
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.shops-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.shops-card-title a:hover {
    color: var(--shops-green);
}

.shops-card-desc {
    font-size: 13px;
    color: var(--shops-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shops-card-price-row {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e4eff4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shops-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--shops-green);
}

.shops-price.contact {
    color: var(--shops-orange);
    font-size: 15px;
}

.shops-card-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.shops-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--shops-navy);
    border: 1px solid #c7dfea;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 10px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.shops-btn-view:hover {
    background: #eaf4f8;
    color: var(--shops-navy);
}

.shops-btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--shops-navy);
    color: #fff;
    border: 1px solid var(--shops-navy);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 10px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.shops-btn-order:hover {
    background: var(--shops-green-hover);
    border-color: var(--shops-green);
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================
   CHI TIẾT SẢN PHẨM (DETAIL PAGE)
   ========================================= */
.shops-breadcrumb {
    font-size: 13px;
    color: var(--shops-muted);
    margin-bottom: 20px;
}

.shops-breadcrumb a {
    color: var(--shops-blue);
    text-decoration: none;
}

.shops-detail-hero {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 35px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e1eff5;
    box-shadow: 0 6px 20px rgba(4, 71, 98, 0.08);
    margin-bottom: 35px;
}

@media (max-width: 900px) {
    .shops-detail-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
}

.shops-detail-image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fbfd;
    border: 1px solid #d9ebf2;
}

.shops-detail-image-box img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.shops-detail-info {
    display: flex;
    flex-direction: column;
}

.shops-detail-title {
    font-size: 27px;
    font-weight: 800;
    color: var(--shops-navy);
    line-height: 1.25;
    margin: 0 0 12px;
}

.shops-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--shops-muted);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ebf4f8;
}

.shops-detail-meta span i {
    color: var(--shops-green);
    margin-right: 4px;
}

.shops-detail-price-box {
    background: linear-gradient(135deg, #f0f8fb, #e4f4f0);
    border-left: 4px solid var(--shops-green);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.shops-detail-price-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--shops-ink);
}

.shops-detail-price-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--shops-green);
}

.shops-detail-intro {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--shops-ink);
    margin-bottom: 22px;
    background: #fafcfe;
    border-radius: 10px;
    padding: 14px;
    border: 1px dashed #cfe3ec;
}

/* Khung đặt hàng nhanh (gọn gàng trên trang chi tiết) */
.shops-order-box {
    background: #f1f8fa;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #cce4ee;
    margin-top: auto;
}

.shops-order-compact-actions {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    .shops-order-compact-actions {
        grid-template-columns: 1fr;
    }
}

.shops-btn-open-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #07893e, #0a9e48);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 13px 18px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(7, 137, 62, 0.3);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shops-btn-open-order:hover {
    background: linear-gradient(135deg, #056c30, #07893e);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(7, 137, 62, 0.4);
}

.shops-btn-call-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #064469, #006b99);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 16px;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(6, 68, 105, 0.2);
}

.shops-btn-call-compact strong {
    color: #ffe600;
    font-size: 15px;
    font-weight: 800;
}

.shops-btn-call-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 68, 105, 0.3);
}

.shops-order-compact-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--shops-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.shops-order-compact-note i {
    color: var(--shops-green);
}

/* =========================================
   POPUP / MODAL ĐẶT HÀNG NHANH
   ========================================= */
body.shops-modal-open {
    overflow: hidden;
}

.shops-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 38, 58, 0.62);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shops-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.shops-modal-dialog {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(4, 38, 58, 0.35);
    border: 1px solid #d4eaf2;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.shops-modal-overlay.is-open .shops-modal-dialog {
    transform: translateY(0) scale(1);
}

.shops-modal-header {
    background: linear-gradient(135deg, #064469, #006b99);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-radius: 15px 15px 0 0;
}

.shops-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shops-modal-title i {
    color: #ffe600;
}

.shops-modal-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.shops-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.shops-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.shops-modal-body {
    padding: 20px 22px 22px;
}

.shops-modal-product {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f2f9fc;
    border: 1px solid #d5eaf2;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.shops-modal-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #cde2eb;
    background: #fff;
    flex-shrink: 0;
}

.shops-modal-product-info {
    min-width: 0;
    flex: 1;
}

.shops-modal-product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--shops-navy);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shops-modal-product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--shops-green);
}

.shops-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--shops-navy);
    margin-bottom: 5px;
}

.shops-form-label span {
    color: #e53935;
}

.shops-modal-footer-hotline {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #d7e8f0;
    text-align: center;
    font-size: 13px;
    color: var(--shops-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shops-modal-footer-hotline a {
    color: var(--shops-navy);
    font-weight: 800;
    text-decoration: none;
    background: #eaf5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

.shops-modal-footer-hotline a:hover {
    color: var(--shops-green);
}

/* Form đặt hàng nhanh */
.shops-order-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.shops-order-form .form-full {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .shops-order-form {
        grid-template-columns: 1fr;
    }
    .shops-order-form .form-full {
        grid-column: span 1;
    }
}

.shops-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c2dbe6;
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    color: var(--shops-ink);
    outline: none;
    transition: border-color 0.2s;
}

.shops-input:focus {
    border-color: var(--shops-green);
    box-shadow: 0 0 0 3px rgba(7, 137, 62, 0.15);
}

.shops-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c2dbe6;
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    color: var(--shops-ink);
    outline: none;
    resize: vertical;
    min-height: 70px;
}

.shops-btn-submit-order {
    background: var(--shops-green);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    padding: 13px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(7, 137, 62, 0.3);
}

.shops-btn-submit-order:hover {
    background: var(--shops-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 137, 62, 0.4);
}

/* Tab & Chi tiết bài viết */
.shops-content-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e1eff5;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(4, 71, 98, 0.05);
    margin-bottom: 35px;
}

.shops-content-box-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--shops-navy);
    padding-bottom: 12px;
    margin: 0 0 20px;
    border-bottom: 2px solid var(--shops-green);
    display: inline-block;
}

.shops-bodytext {
    font-size: 15px;
    line-height: 1.7;
    color: #2c424e;
}

.shops-bodytext img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 12px auto;
}

.shops-bodytext p {
    margin-bottom: 14px;
}

.shops-bodytext ul, .shops-bodytext ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.shops-bodytext ul{
    list-style: disc;
}

.shops-bodytext ol{
    list-style: circle;
}

.shops-bodytext li {
    margin-bottom: 6px;
}

/* Cam kết dịch vụ */
.shops-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 25px 0 35px;
    padding: 20px;
    background: #f1f8fa;
    border-radius: 14px;
    border: 1px solid #d7eaf1;
}

@media (max-width: 768px) {
    .shops-trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

.shops-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shops-trust-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--shops-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.shops-trust-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shops-navy);
    margin: 0;
}

.shops-trust-desc {
    font-size: 12px;
    color: var(--shops-muted);
    margin: 2px 0 0;
}

/* Phân trang Pagination */
.shops-pagination {
    margin-top: 35px;
    text-align: center;
}

.shops-pagination ul.pagination {
    display: inline-flex;
    padding-left: 0;
    margin: 0;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shops-pagination ul.pagination li {
    display: inline;
}

.shops-pagination ul.pagination li a,
.shops-pagination ul.pagination li span {
    color: var(--shops-navy);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid #e1ecf0;
}

.shops-pagination ul.pagination li.active a,
.shops-pagination ul.pagination li.active span {
    background: var(--shops-green);
    border-color: var(--shops-green);
    color: #fff;
}
