.main-title
{
text-align: center; 
padding-top:20px !important;
}
.second-title
{
text-align: center; 
padding:2px !important;
}

.product-info-wrapper {
    display: flex;
    align-items: center; 
    gap: 10px;
    padding: 8px 4px;
    width: 100%;
}

.product-info-left {
    flex: 1;
    max-width: 60px; 
}
.product-info-left img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.product-info-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; 
}

.info-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    margin-bottom: 4px;
}

.info-price {
    font-size: 15px;
    color: #000;
    font-weight: 800;
}
.video-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 16px;
    cursor: grab;
    scroll-behavior: smooth;
    max-width: 80%;
    margin:0 auto;
}
.video-carousel.active { cursor: grabbing; }

.video-carousel::-webkit-scrollbar { height: 6px; }
.video-carousel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}
.video-carousel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    transition: background 0.3s;
}
.video-carousel::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.5); }

.video-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 200px;
}
@media (min-width: 768px) { .video-card { width: 250px; } }
@media (min-width: 1024px) { .video-card { width: 300px; } }

.video-item {
    position: relative;
    width: 100%;
    height: 356px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
@media (min-width: 768px) { .video-item { height: 444px; } }
@media (min-width: 1024px) { .video-item { height: 533px; } }

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}
.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

/* button */
.video-actions {
    display: flex;
    justify-content: center;
}
.buy-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #337ab7;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.buy-btn:hover { background: #286090; }

/* loading icon */
.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 3;
  display: none; 
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-views {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5; 
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35); 
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none; 
}

.video-views svg {
    width: 16px;
    height: 16px;
    display: block;
}

.view-num {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    font-family: 'Poppins', Arial, sans-serif;
}

@media (max-width: 767px) {
    .video-views {
        top: 8px;
        left: 8px;
        padding: 2px 6px;
    }
    .view-num {
        font-size: 13px;
    }
}