        .shop-wrap { padding: 32px 0 80px; }
        .shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
        .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
        .toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .toolbar-count { font-size: 14px; color: var(--ink-3); }
        .toolbar-tag { display: flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--surface); border-radius: var(--r-full); font-size: 13px; color: var(--ink-2); }
        .toolbar-tag button { display: flex; color: var(--ink-muted); transition: var(--t); }
        .toolbar-tag button:hover { color: var(--red); }
        .sort-select { padding: 7px 32px 7px 12px; border: 1.5px solid var(--border); border-radius: var(--r-md); font-size: 13.5px; font-family: var(--font-body); color: var(--ink); background: var(--bg-alt); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236B6459' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
        .sort-select:focus { outline: none; border-color: var(--accent); }
        .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
        .cat-chip { padding: 7px 14px; border-radius: var(--r-full); border: 1.5px solid var(--border); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: var(--t); background: var(--bg-alt); white-space: nowrap; }
        .cat-chip:hover { border-color: var(--ink); color: var(--ink); }
        .cat-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
        @media(max-width:1024px) { .shop-layout { grid-template-columns: 1fr; } .filter-card { display: none; } }
        @media(max-width:640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
        
        .pdp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
        .pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 40px 0 64px; }
        .gallery { position: sticky; top: 88px; }
        .gallery__main { position: relative; background: #F8F8F7; border: 1px solid #E8E6E1; border-radius: 16px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
        .gallery__main-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #B0ADA6; }
        .gallery__main-placeholder span { font-size: 13px; }
        .gallery__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px; }
        .badge-discount { background: #E53E3E; color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
        .gallery__wish { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #E8E6E1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
        .gallery__wish:hover { background: #FFF0EE; }
        .gallery__wish.active svg { fill: #E53E3E; stroke: #E53E3E; }
        .gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
        .gallery__thumb { aspect-ratio: 1; background: #F8F8F7; border: 1.5px solid #E8E6E1; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s; color: #9A9790; overflow: hidden; }
        .gallery__thumb:hover { border-color: #9A9790; }
        .gallery__thumb.active { border-color: #1A1A1A; background: #fff; }
        .gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
        .gallery__main img { max-width: 90%; max-height: 90%; object-fit: contain; }
        .pdp-brand { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
        .pdp-name { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #1A1A1A; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 16px; }
        .pdp-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9A9790; margin-bottom: 8px; }
        .pdp-breadcrumb a { color: #9A9790; text-decoration: none; }
        .pdp-breadcrumb a:hover { color: #1A1A1A; }
        .pdp-rating { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #EDEBE6; margin-bottom: 20px; }
        .stars { display: flex; align-items: center; gap: 2px; }
        .pdp-rating__score { font-size: 14px; font-weight: 600; color: #1A1A1A; }
        .pdp-rating__count { font-size: 13px; color: #9A9790; }
        .pdp-rating__sep { width: 1px; height: 14px; background: #EDEBE6; }
        .pdp-stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
        .in-stock { color: #16A34A; }
        .out-stock { color: #DC2626; }
        .price-block { background: #FAFAF9; border: 1px solid #EDEBE6; border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
        .price-block__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
        .price-block__current { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #1A1A1A; letter-spacing: -.5px; }
        .price-block__old { font-size: 16px; color: #B0ADA6; text-decoration: line-through; }
        .price-block__save { background: #FEF2F2; color: #DC2626; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
        .price-block__installment { margin-top: 8px; font-size: 12px; color: #6B6965; display: flex; align-items: center; gap: 6px; }
        .option-section { margin-bottom: 20px; }
        .option-header { font-size: 12px; font-weight: 600; color: #6B6965; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
        .option-header__value { color: #1A1A1A; text-transform: none; letter-spacing: 0; font-weight: 500; }
        .color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
        .color-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: transform .15s; position: relative; }
        .color-swatch::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s; }
        .color-swatch.active::after { border-color: #1A1A1A; }
        .color-swatch:hover { transform: scale(1.08); }
        .size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
        .size-chip { min-width: 64px; padding: 8px 14px; border-radius: 8px; border: 1.5px solid #EDEBE6; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s; background: #fff; color: #1A1A1A; }
        .size-chip:hover { border-color: #9A9790; }
        .size-chip.active { background: #1A1A1A; border-color: #1A1A1A; color: #fff; }
        .size-chip.out { opacity: .4; pointer-events: none; text-decoration: line-through; }
        .qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
        .qty-ctrl { display: inline-flex; align-items: center; border: 1.5px solid #EDEBE6; border-radius: 8px; overflow: hidden; }
        .qty-ctrl__btn { width: 38px; height: 40px; background: #F8F8F7; font-size: 18px; cursor: pointer; border: none; color: #1A1A1A; display: flex; align-items: center; justify-content: center; transition: background .15s; }
        .qty-ctrl__btn:hover { background: #EDEBE6; }
        .qty-ctrl__input { width: 48px; height: 40px; text-align: center; border: none; border-left: 1.5px solid #EDEBE6; border-right: 1.5px solid #EDEBE6; font-size: 14px; font-weight: 600; font-family: var(--font-body); background: #fff; color: #1A1A1A; }
        .qty-stock-note { font-size: 12px; color: #9A9790; }
        .cta-row { display: flex; gap: 10px; margin-bottom: 24px; }
        .btn-cart { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #1A1A1A; color: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background .15s; font-family: var(--font-body); }
        .btn-cart:hover { background: #333; }
        .btn-buy { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: opacity .15s; font-family: var(--font-body); }
        .btn-buy:hover { opacity: .88; }
        .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 20px; border-top: 1px solid #EDEBE6; }
        .trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: #FAFAF9; border-radius: 10px; text-align: center; }
        .trust-item__icon { color: #6B6965; }
        .trust-item__text { font-size: 11px; font-weight: 500; color: #6B6965; line-height: 1.3; }
        .delivery-box { margin-top: 16px; border: 1px solid #EDEBE6; border-radius: 10px; overflow: hidden; }
        .delivery-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #EDEBE6; font-size: 13px; }
        .delivery-row:last-child { border-bottom: none; }
        .delivery-row__icon { color: #6B6965; flex-shrink: 0; margin-top: 1px; }
        .delivery-row__label { font-weight: 600; color: #1A1A1A; margin-bottom: 2px; }
        .delivery-row__sub { color: #9A9790; font-size: 12px; }
        .pdp-tabs { margin-top: 64px; border-top: 1px solid #EDEBE6; }
        .tab-nav { display: flex; border-bottom: 1px solid #EDEBE6; overflow-x: auto; }
        .tab-btn { display: flex; align-items: center; gap: 7px; padding: 14px 20px; background: transparent; border: none; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; color: #9A9790; cursor: pointer; white-space: nowrap; transition: color .15s; font-family: var(--font-body); }
        .tab-btn:hover { color: #1A1A1A; }
        .tab-btn.active { color: #1A1A1A; border-bottom-color: #1A1A1A; font-weight: 600; }
        .tab-panel { display: none; padding: 32px 0; }
        .tab-panel.active { display: block; }
        .specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
        .specs-table tr { border-bottom: 1px solid #EDEBE6; }
        .specs-table tr:last-child { border-bottom: none; }
        .specs-table td { padding: 13px 16px; vertical-align: top; line-height: 1.5; }
        .specs-table td:first-child { width: 190px; font-weight: 500; color: #6B6965; background: #FAFAF9; }
        .specs-table td:last-child { color: #1A1A1A; }
        .specs-table tr:nth-child(even) td:first-child { background: #F5F3EE; }
        .desc-content { font-size: 14px; line-height: 1.8; color: #4B4A47; }
        .desc-content p { margin-bottom: 16px; }
        .desc-content ul { margin: 0 0 16px 20px; }
        .desc-content li { margin-bottom: 6px; }
        .desc-content h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #1A1A1A; margin: 24px 0 10px; }
        .review-overview { display: flex; gap: 40px; align-items: center; background: #FAFAF9; border: 1px solid #EDEBE6; border-radius: 14px; padding: 24px 28px; margin-bottom: 28px; }
        .review-score__num { font-family: var(--font-display); font-size: 52px; font-weight: 700; color: #1A1A1A; line-height: 1; }
        .review-score__stars { display: flex; gap: 3px; margin: 6px 0 4px; }
        .review-score__label { font-size: 12px; color: #9A9790; }
        .review-bars { flex: 1; }
        .review-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
        .review-bar-row__label { font-size: 12px; color: #6B6965; width: 14px; text-align: right; flex-shrink: 0; }
        .review-bar-track { flex: 1; height: 6px; background: #EDEBE6; border-radius: 99px; overflow: hidden; }
        .review-bar-fill { height: 100%; background: #F59E0B; border-radius: 99px; }
        .review-bar-row__count { font-size: 12px; color: #9A9790; width: 14px; }
        .review-list { border-top: 1px solid #EDEBE6; }
        .review-item { padding: 20px 0; border-bottom: 1px solid #EDEBE6; }
        .review-item:last-of-type { border-bottom: none; }

        /* Header: avatar + meta info */
        .review-item__header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
        .review-item__avatar { flex-shrink: 0; }
        .review-item__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
        .review-item__avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: #1A1A1A; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
        .review-item__meta { flex: 1; }
        .review-item__name { font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
        .review-item__stars { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; }
        .review-item__date { font-size: 12px; color: #B0ADA6; margin-left: 8px; }
        .review-item__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #16A34A; font-weight: 500; }

        /* Nội dung comment */
        .review-item__comment { font-size: 14px; color: #4B4A47; line-height: 1.6; margin-bottom: 12px; }

        /* Ảnh review */
        .review-item__images { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
        .review-item__images a { display: block; flex-shrink: 0; }
        .review-item__images img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #EDEBE6; transition: opacity .15s; }
        .review-item__images img:hover { opacity: .85; }

        /* Phản hồi của Shop */
        .review-item__reply { background: #F5F3EE; border-left: 3px solid #D4C9A8; border-radius: 0 8px 8px 0; padding: 12px 14px; margin-top: 10px; }
        .review-item__reply-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #6B6965; margin-bottom: 6px; }
        .review-item__reply-text { font-size: 13px; color: #4B4A47; line-height: 1.6; }

        /* Empty state */
        .review-empty { font-size: 14px; color: #9A9790; padding: 24px 0; text-align: center; }

        /* Load more */
        #reviewLoadMore { text-align: center; padding: 20px 0; }
        .btn-load-more { height: 40px; padding: 0 24px; border: 1.5px solid #EDEBE6; border-radius: 8px; font-size: 13px; font-weight: 500; color: #6B6965; background: #fff; cursor: pointer; transition: border-color .15s, color .15s; font-family: var(--font-body); }
        .btn-load-more:hover { border-color: #1A1A1A; color: #1A1A1A; }

        /* Review filters */
        .review-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
        .review-filter-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1.5px solid #EDEBE6; border-radius: 99px; font-size: 13px; font-weight: 500; color: #6B6965; background: #fff; cursor: pointer; transition: all .15s; font-family: var(--font-body); }
        .review-filter-btn:hover { border-color: #9A9790; color: #1A1A1A; }
        .review-filter-btn.active { background: #1A1A1A; border-color: #1A1A1A; color: #fff; }
        .review-filter-star { background: none; border: none; font-size: 12px; color: #6B6965; cursor: pointer; padding: 0 2px; font-family: var(--font-body); }
        .review-filter-star.active { color: #F59E0B; font-weight: 700; }

        /* No purchase / login prompt */
        .review-no-purchase { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px; text-align: center; color: #6B6965; font-size: 14px; }

        /* Nút sửa */
        .review-item__edit-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 10px; border: 1.5px solid #EDEBE6; border-radius: 6px; font-size: 12px; color: #6B6965; background: #fff; cursor: pointer; font-family: var(--font-body); transition: all .15s; flex-shrink: 0; }
        .review-item__edit-btn:hover { border-color: #1A1A1A; color: #1A1A1A; }

        /* Form sửa inline */
        .review-item__edit-form { background: #FAFAF9; border: 1px solid #EDEBE6; border-radius: 10px; padding: 14px; margin: 10px 0; }
        .edit-star-picker { display: flex; gap: 4px; margin-bottom: 10px; }
        .review-item__edit-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #EDEBE6; border-radius: 8px; font-size: 14px; font-family: var(--font-body); color: #1A1A1A; background: #fff; resize: vertical; min-height: 72px; box-sizing: border-box; transition: border-color .15s; }
        .review-item__edit-textarea:focus { border-color: #9A9790; outline: none; }
        .review-item__edit-actions { display: flex; gap: 8px; margin-top: 10px; }
        .btn-edit-save { height: 34px; padding: 0 16px; background: #1A1A1A; color: #fff; border: none; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background .15s; }
        .btn-edit-save:hover { background: #333; }
        .btn-edit-cancel { height: 34px; padding: 0 16px; background: #fff; color: #6B6965; border: 1.5px solid #EDEBE6; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font-body); transition: all .15s; }
        .btn-edit-cancel:hover { border-color: #9A9790; color: #1A1A1A; }

        /* Tag "Đã chỉnh sửa" */
        .review-item__edited { font-size: 11px; color: #B0ADA6; font-style: italic; margin-left: 6px; }

        /* Reply của khách vào admin */
        .review-item__child-reply { background: #fff; border-left: 2px solid #EDEBE6; padding: 8px 12px; margin-top: 8px; border-radius: 0 6px 6px 0; }
        .review-item__child-reply-name { font-size: 12px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
        .review-item__child-reply-date { font-size: 11px; color: #B0ADA6; font-weight: 400; margin-left: 4px; }
        .review-item__child-reply-text { font-size: 13px; color: #4B4A47; line-height: 1.5; }

        /* Nút + form reply */
        .review-item__reply-form-wrap { margin-top: 10px; }
        .review-item__reply-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #6B6965; background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-body); transition: color .15s; }
        .review-item__reply-toggle:hover { color: #1A1A1A; }
        .review-item__reply-form { margin-top: 8px; }

        /* Alert messages */
        .alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
        .alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
        .alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
        .form-error { font-size: 12px; color: #DC2626; margin-top: 4px; display: block; }
        .review-form-wrap { background: #FAFAF9; border: 1px solid #EDEBE6; border-radius: 14px; padding: 24px; margin-top: 28px; }
        .review-form-wrap h4 { font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 16px; }
        .star-picker { display: flex; gap: 4px; margin-bottom: 14px; cursor: pointer; }
        .form-group { margin-bottom: 12px; }
        .form-label { font-size: 12px; font-weight: 500; color: #6B6965; display: block; margin-bottom: 6px; }
        .form-input { width: 100%; padding: 10px 14px; border: 1.5px solid #EDEBE6; border-radius: 8px; font-size: 14px; font-family: var(--font-body); color: #1A1A1A; background: #fff; transition: border-color .15s; box-sizing: border-box; }
        .form-input:focus { border-color: #9A9790; outline: none; }
        textarea.form-input { resize: vertical; min-height: 88px; }
        .btn-submit-review { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 20px; background: #1A1A1A; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-body); transition: background .15s; }
        .btn-submit-review:hover { background: #333; }
        .related-section { margin-top: 64px; padding-top: 40px; border-top: 1px solid #EDEBE6; }
        .section-header { margin-bottom: 24px; }
        .section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
        .section-sub { font-size: 13px; color: #9A9790; }
        .related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        .related-card { background: #FAFAF9; border: 1px solid #EDEBE6; border-radius: 12px; padding: 16px; cursor: pointer; transition: box-shadow .2s, transform .2s; text-decoration: none; display: block; }
        .related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
        .related-card__img { aspect-ratio: 1; background: #F0EEE9; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: #C5C3BC; overflow: hidden; }
        .related-card__img img { width: 100%; height: 100%; object-fit: contain; }
        .related-card__name { font-size: 13px; font-weight: 500; color: #1A1A1A; margin-bottom: 6px; line-height: 1.4; }
        .related-card__price { font-size: 15px; font-weight: 700; color: #1A1A1A; font-family: var(--font-display); }
        .related-card__price-old { font-size: 12px; color: #B0ADA6; text-decoration: line-through; margin-left: 6px; }
        .sku-label { font-size: 11px; color: #9A9790; margin-bottom: 12px; font-family: monospace; }
        @media (max-width: 1024px) { .pdp-grid { grid-template-columns: 1fr; gap: 32px; } .gallery { position: static; } .related-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 640px) { .pdp-grid { padding: 24px 0 40px; } .trust-grid { grid-template-columns: 1fr 1fr; } .review-overview { flex-direction: column; gap: 20px; } .related-grid { grid-template-columns: repeat(2, 1fr); } }



        /* ═══════════════════════════════════════════════════════════
   FLASH SALE — badge, countdown, giá
   Thêm vào cuối products.css
   ═══════════════════════════════════════════════════════════ */

/* Badge "⚡ Flash Sale" trên card danh sách — CỰC nổi bật */
.badge-flash {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff3d3d, #ff7043);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 0 rgba(255, 61, 61, .55), 0 4px 12px rgba(255, 61, 61, .5);
    animation:
        flashWobble 1.2s ease-in-out infinite,
        flashRing 1.2s ease-out infinite;
}

/* Vệt sáng quét ngang qua badge */
.badge-flash::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .8), transparent);
    animation: flashShine 1.6s ease-in-out infinite;
}

/* Phóng to + lắc nhẹ hai bên — bắt mắt hơn hẳn kiểu chỉ mờ/tỏ */
@keyframes flashWobble {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%      { transform: scale(1.12) rotate(-3deg); }
    50%      { transform: scale(1.05) rotate(3deg); }
    75%      { transform: scale(1.12) rotate(-2deg); }
}

/* Vòng sóng đỏ lan ra ngoài rồi tan biến — kiểu radar ping */
@keyframes flashRing {
    0%   { box-shadow: 0 0 0 0   rgba(255, 61, 61, .55), 0 4px 12px rgba(255, 61, 61, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 61, 61, 0),    0 4px 12px rgba(255, 61, 61, .5); }
    100% { box-shadow: 0 0 0 0   rgba(255, 61, 61, 0),    0 4px 12px rgba(255, 61, 61, .5); }
}

@keyframes flashShine {
    0%   { left: -60%; }
    50%  { left: 130%; }
    100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .badge-flash,
    .badge-flash::after {
        animation: none;
    }
}



/* ── Trang chi tiết sản phẩm ────────────────────────────── */

/* Badge "⚡ FLASH SALE" trên price-block */
.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ff4d4f, #ff7043);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    animation: flashPulse 1.8s ease-in-out infinite;
}

/* Giá gốc (trước sale) — gạch ngang màu xám nhạt */
.price-block__original {
    font-size: 14px;
    color: var(--ink-3, #9a9790);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Đồng hồ đếm ngược */
.countdown-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.countdown-label {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    white-space: nowrap;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ef4444;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 42px;
}

.countdown-unit span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit small {
    font-size: 9px;
    font-weight: 500;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.countdown-sep {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    line-height: 1;
    margin-bottom: 10px;
}




 /* ── TRANG SẢN PHẨM ────────────────────────────────────────── */
        .shop-wrap {
            padding: 32px 0 80px;
        }

        /* ── CHIPS DANH MỤC CON ─────────────────────────────────────── */
        .cat-chips {
            display: flex;
            gap: 8px;
            flex-wrap: nowrap;
            overflow-x: auto;
            margin-bottom: 24px;
            padding-bottom: 4px;
            scrollbar-width: none;
        }

        .cat-chips::-webkit-scrollbar {
            display: none;
        }

        .cat-chip {
            padding: 7px 16px;
            border-radius: var(--r-full);
            border: 1.5px solid var(--border);
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-2);
            white-space: nowrap;
            cursor: pointer;
            transition: var(--t);
            background: var(--bg-alt);
            text-decoration: none;
            flex-shrink: 0;
        }

        .cat-chip:hover {
            border-color: var(--ink);
            color: var(--ink);
        }

        .cat-chip.active {
            background: var(--ink);
            border-color: var(--ink);
            color: #fff;
        }

        /* ── LAYOUT CHÍNH ────────────────────────────────────────────── */
        .shop-layout {
            display: grid;
            grid-template-columns: 230px 1fr;
            gap: 24px;
            align-items: start;
        }

        /* ── SIDEBAR ─────────────────────────────────────────────────── */
        .filter-card {
            background: var(--bg-alt);
            border: 1px solid var(--border-soft);
            border-radius: var(--r-xl);
            padding: 20px;
            position: sticky;
            top: calc(var(--nav-h) + 16px);
        }

        .filter-section {
            margin-bottom: 20px;
        }

        .filter-section:last-of-type {
            margin-bottom: 0;
        }

        .filter-title {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: var(--ink-muted);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .filter-title button {
            font-size: 11px;
            color: var(--accent);
            font-weight: 500;
            background: none;
            border: none;
            cursor: pointer;
            text-transform: none;
            letter-spacing: 0;
        }

        /* Nhóm danh mục cha */
        .cat-group {
            margin-bottom: 8px;
        }

        .cat-group__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 600;
            color: var(--ink);
            cursor: pointer;
            padding: 6px 0;
            user-select: none;
        }

        .cat-group__count {
            font-size: 11px;
            color: var(--ink-muted);
            font-weight: 400;
            background: var(--surface);
            padding: 1px 7px;
            border-radius: 99px;
            flex-shrink: 0;
        }

        .cat-group__chevron {
            transition: transform .2s;
            color: var(--ink-muted);
            flex-shrink: 0;
        }

        .cat-group__chevron.open {
            transform: rotate(90deg);
        }

        .cat-group__children {
            display: none;
            padding-left: 4px;
            margin-top: 4px;
        }

        .cat-group__children.open {
            display: block;
        }

        /* Checkbox con */
        .filter-check {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 0;
        }

        .filter-check label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--ink-2);
            cursor: pointer;
            flex: 1;
        }

        .filter-check input[type="checkbox"] {
            width: 15px;
            height: 15px;
            accent-color: var(--accent);
            cursor: pointer;
            flex-shrink: 0;
        }

        .filter-count {
            font-size: 11px;
            color: var(--ink-muted);
            background: var(--surface);
            padding: 1px 6px;
            border-radius: 99px;
            min-width: 20px;
            text-align: center;
        }

        /* Thanh khoảng giá */
        .price-range-wrap {
            margin-top: 8px;
        }

        .price-display {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .range-track {
            position: relative;
            height: 4px;
            background: var(--border);
            border-radius: 2px;
        }

        .range-fill {
            position: absolute;
            top: 0;
            height: 100%;
            background: var(--accent);
            border-radius: 2px;
        }

        .range-input {
            position: absolute;
            width: 100%;
            height: 4px;
            background: transparent;
            appearance: none;
            pointer-events: none;
            top: 0;
        }

        .range-input::-webkit-slider-thumb {
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent);
            border: 2px solid #fff;
            box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
            pointer-events: all;
            cursor: pointer;
        }

        /* ── TOOLBAR ─────────────────────────────────────────────────── */
        .toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .toolbar-count {
            font-size: 13.5px;
            color: var(--ink-3);
        }

        .toolbar-count strong {
            color: var(--ink);
        }

        .sort-select {
            padding: 7px 32px 7px 12px;
            border: 1.5px solid var(--border);
            border-radius: var(--r-md);
            font-size: 13.5px;
            font-family: var(--font-body);
            color: var(--ink);
            background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236B6459' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
            appearance: none;
            cursor: pointer;
        }

        .sort-select:focus {
            outline: none;
            border-color: var(--accent);
        }

        /* ── PRODUCT GRID ────────────────────────────────────────────── */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        /* ── PAGINATION ──────────────────────────────────────────────── */
        .pagination {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 36px;
        }

        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: var(--r-md);
            border: 1.5px solid var(--border);
            background: var(--bg-alt);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--ink-2);
            cursor: pointer;
            transition: var(--t);
        }

        .page-btn:hover:not(:disabled) {
            border-color: var(--accent);
            color: var(--accent);
        }

        .page-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }

        .page-btn:disabled {
            opacity: .35;
            cursor: not-allowed;
        }

        /* ── RESPONSIVE ──────────────────────────────────────────────── */
        @media(max-width:1024px) {
            .shop-layout {
                grid-template-columns: 1fr;
            }

            .filter-card {
                display: none;
            }
        }

        @media(max-width:640px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }




