@import url('https://fonts.googleapis.com/css2?family=Bayon&family=Hanuman:wght@400;700&display=swap');

#cw, #cw * { box-sizing: border-box; }
#cw { font-family: 'Hanuman', sans-serif; color: #1e293b; line-height: 1.7; }
#cw img { max-width: 100%; }

/* ===== Product top ===== */
#cw .top { display: flex; flex-direction: column; gap: 28px; padding: 20px 0 10px; }
@media (min-width: 992px) { #cw .top { flex-direction: row; gap: 48px; } #cw .top .gal { width: 60%; } #cw .top .info { width: 40%; } }

#cw .main-img { background: #fff; border-radius: 8px; overflow: hidden; line-height: 0; position: relative; }
#cw .main-img img { width: 100%; height: auto; display: block; transition: opacity .2s; }
#cw .thumbs button { width: 20%; min-width: 60px; max-width: 110px; background: none; border: 0; outline: 0; box-shadow: none;
  padding: 0; cursor: pointer; opacity: 1; line-height: 0; -webkit-tap-highlight-color: transparent; }

#cw .thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
#cw .thumbs button { width: 20%; min-width: 60px; max-width: 110px; background: none; border: 0; outline: 0; box-shadow: none;
  border-radius: 0; padding: 0; cursor: pointer; opacity: .5; transition: opacity .2s; line-height: 0; -webkit-tap-highlight-color: transparent; }
#cw .thumbs button:hover, #cw .thumbs button.on { opacity: 1; }
#cw .thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 0; }

#cw .info { display: flex; flex-direction: column; justify-content: center; }
#cw .tag { font-family: 'Bayon', sans-serif; font-size: 22px; color: #010a22; }
#cw .title { font-size: 28px; margin: 6px 0 10px; color: #222; font-weight: 700; line-height: 1.4; }
#cw .lead { font-weight: 300; margin: 0 0 14px; }
#cw .rating { color: #ff9800; font-size: 14px; margin-bottom: 8px; }
#cw .now { font-size: 26px; font-weight: 700; color: #d00; }
#cw .old { text-decoration: line-through; color: #888; margin-left: 10px; }

#cw .tg-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 28px; border-radius: 6px;
  background: linear-gradient(45deg, #007bff, #00c6ff); color: #fff !important; font-weight: 700; font-size: 18px; text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0,123,255,.3); animation: cw-pulse 2s infinite; transition: transform .2s; }
#cw .tg-btn:hover { transform: translateY(-3px); }
@keyframes cw-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,123,255,.4); } 70% { box-shadow: 0 0 0 15px rgba(0,123,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,123,255,0); } }

/* ===== Sections ===== */
#cw h3.sec { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin: 36px 0 14px; color: #0f172a; }
#cw h3.sec::before { content: ""; width: 6px; height: 24px; background: #2563eb; border-radius: 4px; }

#cw .points { background: #f8fafc; border-left: 4px solid #c5a059; border-radius: 8px; padding: 14px 18px; margin: 16px 0; }
#cw .points-title { font-weight: 700; margin-bottom: 6px; }
#cw .points ul { margin: 0; padding-left: 20px; }
#cw .points li { padding: 4px 0; }
@media (max-width: 480px) { #cw .points li { font-size: 13px; line-height: 1.8; } }

#cw .table-wrap { margin: 20px 0; overflow-x: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.06); }
#cw table { width: 100%; border-collapse: collapse; background: #fff; }
#cw thead tr { background: #2c3e50; color: #fff; text-align: left; }
#cw th, #cw td { padding: 12px 15px; }
#cw tbody tr:nth-child(even) { background: #f3f3f3; }
#cw tbody tr:hover { background: #f1f7ff; }
#cw td:first-child { font-weight: 700; color: #333; }

/* ===== Photo gallery ===== */
#cw .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
@media (min-width: 768px) { #cw .grid { grid-template-columns: repeat(3, 1fr); } }
#cw .grid div { aspect-ratio: 4/3; overflow: hidden; border-radius: 5px; cursor: pointer; background: #e2e8f0; }
#cw .grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
#cw .grid div:hover img { transform: scale(1.05); }
#cw .more { display: block; margin: 20px auto; background: #2c3e50; color: #fff; padding: 12px 24px; border: 0; border-radius: 6px; font: 600 16px 'Hanuman', sans-serif; cursor: pointer; }
/* ===== Lightbox ===== */
#cw-lb { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.96); z-index: 9999; touch-action: pan-y; }
#cw-lb.on { display: flex; align-items: center; justify-content: center; }
#cw-lb img { max-width: 95%; max-height: 85vh; object-fit: contain; user-select: none; transition: opacity .15s; }
#cw-lb .x, #cw-lb .nav { position: absolute; color: #fff; cursor: pointer; background: rgba(255,255,255,.12); border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 22px; }
#cw-lb .x { top: 16px; right: 16px; } #cw-lb .prev { left: 16px; top: 50%; } #cw-lb .next { right: 16px; top: 50%; }
#cw-lb .cnt { position: absolute; bottom: 24px; color: #fff; font-size: 14px; background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 20px; }
@media (max-width: 767px) { #cw-lb .nav { display: none; } }

/* ===== Floating chat ===== */
#cw-chat { position: fixed; right: 20px; bottom: 80px; z-index: 900; display: flex; align-items: center; gap: 8px; background: #2563eb; color: #fff;
  border: 0; border-radius: 8px; padding: 10px 16px; font: 700 16px 'Hanuman', sans-serif; cursor: pointer; box-shadow: 0 12px 24px rgba(37,99,235,.35); animation: cw-float 3s ease-in-out infinite; }
@keyframes cw-float { 50% { transform: translateY(-10px); } }
#cw-ov { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
#cw-ov.on { opacity: 1; pointer-events: auto; }
#cw-ov .drawer { width: 100%; max-width: 380px; background: #fff; border-radius: 28px 28px 0 0; overflow: hidden; transform: translateY(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
#cw-ov.on .drawer { transform: none; }
@media (min-width: 640px) { #cw-ov { align-items: center; } #cw-ov .drawer { border-radius: 24px; } }
#cw-ov .head { background: #2563eb; color: #fff; text-align: center; padding: 28px 20px; position: relative; }
#cw-ov .head h2 { margin: 0; font-size: 20px; color: #fff; }
#cw-ov .head p { margin: 4px 0 0; font-size: 14px; color: #dbeafe; }
#cw-ov .close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
#cw-ov .links { padding: 16px; display: grid; gap: 8px; }
#cw-ov .links a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; color: #1e293b; border: 1px solid transparent; }
#cw-ov .links a:hover { background: #f8fafc; border-color: #f1f5f9; }
#cw-ov .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
#cw-ov .links a { transition: .2s; }
#cw-ov .links a:hover .ico { background: currentColor !important; }
#cw-ov .links a:hover .ico svg { color: #fff; }  
#cw-ov .links b { display: block; } #cw-ov .links small { color: #94a3b8; }
#cw .tg-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px; border-radius: 6px;
  background: linear-gradient(45deg, #007bff, #00c6ff); color: #fff !important; font-weight: 700; font-size: 14px; line-height: 1.3;
  white-space: nowrap; width: fit-content; text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(0,123,255,.3); animation: cw-pulse 2s infinite; transition: transform .2s; }
#cw .tg-btn:hover { transform: translateY(-2px); }
#cw .tg-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

#cw .opt { margin: 12px 0 0; font-size: 15px; line-height: 1.9; }
#cw .opt b { color: #0f172a; }
#cw #cw-sizes button { margin: 4px 6px 0 0; padding: 4px 14px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a; cursor: pointer; font: inherit; }
#cw #cw-sizes button.on { background: #0f172a; color: #fff; border-color: #0f172a; }
