/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    background-color: white;
    margin: 0 auto;
    color: #333;
}

/* Header */
.header-bar {
    width: 100%;
    background: linear-gradient(to right, #8b0000, #cc0000);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    position: relative;
}

.left, .center, .right {
    flex: 1;
}

.left { text-align: left; }
.center { text-align: center; }
.right { text-align: right; }

.right i {
    font-size: 22px;
    cursor: pointer;
}

#search-bar {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Typography */
h1 {
    font-size: 30px;
    color: black;
    line-height: 1.3;
}
h1 strong { color: #a00; }

h2 { font-size: 20px; margin-top: 25px; }

p { margin-bottom: 15px; }

a { color: #15c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Read-time & Author */
.read-time {
    color: #666;
    font-size: 14px;
    margin: 15px 0;
    padding-left: 8px;
    border-left: 4px solid #a00;
}

.author-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 4px solid #a00;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Logos */
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 16px;
}
.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.logos img {
    height: 32px;
    object-fit: contain;
}

/* Comments */
.comment-count {
    font-size: 9px;
    font-weight: bolder;
    color: black;
    margin-bottom: 12px;
}
.comment-count h3 {
    font-size: 9px;
    font-weight: bolder;
    color: black;
    margin-bottom: 12px;
}
.comments-container {
    display: flex;
    flex-direction: column;
    gap: 0 8px;
    margin-top: 50px;
}
.comment {
    display: flex;
    gap: 7px;
}
.comment-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 45px;
}
.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.comment-body {
    flex: 1;
}
.comment-header {
    font-weight: 600;
    font-size: 14px;
    color: #254f7b;
    margin-bottom: 3px;
}
.comment-text {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 4px;
}
.comment-footer {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.comment-footer i { color: #007BFF; }
.comment-actions { cursor: pointer; }
.comment-likes { color: #666; }
.comment-time { color: #666; }

/* Product Section */
.product-section {
    margin: 25px 0;
}
.product-heading {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #a00;
    font-weight: bold;
}
.product-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.product-box {
    flex: 1 1 200px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}
.product-box:hover {
    border-color: #a00;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-box h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}
.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
}
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #a00;
    margin-bottom: 10px;
}
.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.buy-btn {
    display: block;
    background: #a00;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Footer */
footer {
    background: #000;
    width: 100%;
    height: 77px;
    margin-top: 26px;
    color: #fffdfd;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-bar { flex-direction: column; padding: 10px 15px; text-align: center; }
    .video-wrapper { width: 90%; height: auto; }
    .logos img { height: 28px; }
    .product-boxes { flex-direction: column; align-items: center; gap: 15px; }
    .comment-avatar { width: 40px; height: 42px; }
}

@media (max-width: 768px) {
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    .header-bar { padding: 8px 10px; }
    .video-wrapper { width: 100%; height: auto; }
    .logos img { height: 26px; }
    .comment-header { font-size: 13px; }
    .comment-text { font-size: 13px; }
    .comment-footer { font-size: 11px; gap: 4px; }
    .product-box { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    h1 { font-size: 20px; }
    h2 { font-size: 16px; }
    .comment-header { font-size: 12px; }
    .comment-text { font-size: 12px; }
    .comment-footer { font-size: 10px; gap: 3px; }
    .comment-avatar { width: 38px; height: 40px; }
}
