*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial;
    background:#f5f5f5;
}

/* ═══════════════════════════════════════════════════
   YOU MAY ALSO LIKE — premium compact grid
═══════════════════════════════════════════════════ */
.yml-section {
    margin: 36px -8% 0;   /* break out of product-page 8% padding */
    padding: 0 0 80px;
}

@media (max-width: 600px) {
    .yml-section { margin: 28px 0 0; }
}

.yml-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8% 14px;
}

@media (max-width: 600px) {
    .yml-header { padding: 0 12px 12px; }
}

.yml-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yml-dot {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(180deg, #71ff00, #4fc800);
    flex-shrink: 0;
}

.yml-title {
    font-size: 17px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.2px;
}

.yml-see-all {
    font-size: 12px;
    font-weight: 800;
    color: #71ff00;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid rgba(113,255,0,0.2);
    border-radius: 20px;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.yml-see-all:hover {
    background: rgba(113,255,0,0.08);
    border-color: rgba(113,255,0,0.4);
}

/* Grid */
.yml-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 8%;
}

@media (min-width: 768px) {
    .yml-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}
@media (min-width: 1024px) {
    .yml-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
    .yml-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 12px; }
    .yml-title { font-size: 15px; }
}

/* Individual card */
.yml-card {
    background: rgba(16,16,16,0.96);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}

.yml-card:hover {
    transform: translateY(-3px);
    border-color: rgba(113,255,0,0.28);
    box-shadow: 0 6px 22px rgba(0,0,0,0.5);
}

.yml-card:active {
    transform: scale(0.96);
    opacity: 0.88;
}

.yml-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.yml-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease;
}

.yml-card:hover .yml-img-wrap img {
    transform: scale(1.07);
}

.yml-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(6,6,6,0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.yml-body {
    padding: 7px 8px 9px;
}

.yml-name {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.yml-price {
    font-size: 12.5px;
    font-weight: 900;
    color: #71ff00;
    letter-spacing: -0.2px;
}

@media (max-width: 480px) {
    .yml-name  { font-size: 10.5px; }
    .yml-price { font-size: 11.5px; }
    .yml-body  { padding: 6px 7px 8px; }
}

/* light mode */
body.light-mode .yml-card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
body.light-mode .yml-name  { color: #111; }
body.light-mode .yml-price { color: #1a8a00; }

.navbar{
    background:white;
    padding:20px;
    display:flex;
    align-items:center;
    gap:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.navbar a{
    text-decoration:none;
    color:#1DBF73;
    font-weight:bold;
}

.product-details{
    display:flex;
    gap:40px;
    padding:40px;
    align-items:center;
}

.product-details img{
    width:400px;
    border-radius:20px;
}

.product-info h2{
    font-size:40px;
    margin-bottom:20px;
}

.product-info p{
    font-size:25px;
    color:#1DBF73;
    margin-bottom:20px;
}

.product-info button{
    padding:15px 25px;
    border:none;
    background:#1DBF73;
    color:white;
    border-radius:12px;
    cursor:pointer;
}

@media(max-width:900px){

    .product-details{
        flex-direction:column;
    }

    .product-details img{
        width:100%;
    }

}
/* ═══════════════════════════════════════════════════════
   PRODUCT PAGE — RESPONSIVE
   (These override the old product.css legacy rules)
═══════════════════════════════════════════════════════ */

@media(max-width:600px){
  .product-page{padding:14px 0 80px;}
  .product-page-container{padding:0;}

  /* Legacy product-details layout */
  .product-details{flex-direction:column;gap:20px;padding:20px 16px;}
  .product-details img{width:100%;max-height:280px;object-fit:cover;border-radius:16px;}
  .product-info h2{font-size:24px;}
  .product-info p{font-size:18px;}

  /* Related products */
  .related-section{margin-top:40px;padding:0 16px;}
  .related-section h2{font-size:22px;margin-bottom:16px;}
  .related-products{grid-template-columns:repeat(2,1fr);gap:14px;}
  .related-card img{height:140px;}
  .related-card h3{font-size:13px;}
  .related-card p{font-size:13px;}

  /* Reviews */
  .reviews-section{padding:0 16px 60px;}
  .reviews-section h2{font-size:20px;}
  .review-card{padding:14px 16px;}

  /* Thumbnail gallery */
  .thumbnail-gallery{justify-content:center;}
  .thumb-img{width:54px;height:54px;}

  /* Q&A section */
  #qaSection{margin:16px 0;}
  #qaSection input,#qaSection textarea{font-size:13px;padding:10px 12px;}
}

@media(max-width:480px){
  .product-details{padding:14px 12px;}
  .product-info h2{font-size:20px;margin-bottom:12px;}
  .product-info p{font-size:16px;margin-bottom:14px;}
  .product-info button{padding:12px 20px;font-size:14px;width:100%;}
  .related-products{grid-template-columns:repeat(2,1fr);gap:10px;}
  .related-card img{height:120px;}
  .related-section h2{font-size:18px;}
  .reviews-section h2{font-size:18px;}
  .thumb-img{width:48px;height:48px;border-radius:8px;}

  /* Live comments section */
  #liveCommentsSection{margin:14px 0;}
  #commentName,#commentText{font-size:13px;padding:10px 12px;}

  /* Video section */
  #productVideoEl{border-radius:10px;}
}

@media(max-width:380px){
  .product-details{padding:10px;}
  .product-info h2{font-size:18px;}
  .thumb-img{width:42px;height:42px;}
  .related-products{grid-template-columns:repeat(2,1fr);gap:8px;}
  .related-card img{height:100px;}
}
