/* Homepage: advanced online store (sections/salesCta.blade.php).
   Live order hub in CSS; loops play only while .is-live. Text >= 13px. */
.hc-section { position: relative; padding: 90px 0; background: linear-gradient(120deg, #eef8ff, #f6f3ff); color: #10155c; direction: rtl; text-align: right; overflow: hidden; }
.hc-section *, .hc-section *::before, .hc-section *::after { box-sizing: border-box; }
.hc-section:not(.is-live) *, .hc-section:not(.is-live) *::before, .hc-section:not(.is-live) *::after { animation-play-state: paused !important; }
.hc-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 18px; border-radius: 30px; background: #ffe9ea; color: #d23a42; font-size: 13px; font-weight: 600; }
.hc-section h2 { margin: 0 0 16px; color: #10155c; font-size: clamp(26px, 2.5vw, 38px); font-weight: 800; line-height: 1.6; letter-spacing: -.5px; }
.hc-section h2 span { color: #f45158; }
.hc-copy > p { margin: 0 0 24px; color: #6f7693; font-size: 15px; line-height: 2.1; }
.hc-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.hc-features li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px -22px #5b6fb080; color: #10155c; font-size: 14px; font-weight: 600; line-height: 1.8; }
.hc-features i { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.hc-f--violet i { background: #f1eeff; color: #7057e8; }
.hc-f--coral i { background: #ffeff0; color: #f45158; }
.hc-f--yellow i { background: #fff7dc; color: #d9a90c; }
.hc-f--mint i { background: #e3f8ef; color: #2fb889; }
.hc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

/* Visual: channels → store, orders panel below */
.hc-visual { display: grid; grid-template-columns: auto 56px minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 0; align-items: center; }
.hc-channels { display: grid; gap: 22px; }
.hc-channel { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 12px 26px -18px #3b4f9a66; color: #10155c; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hc-channel i { color: #f45158; }
.hc-channel--b i { color: #7057e8; }
.hc-channel--c i { color: #2fb889; }
.hc-links { display: grid; gap: 22px; align-self: stretch; align-content: center; }
.hc-links span { position: relative; height: 44px; }
.hc-links span::before { content: ''; position: absolute; top: 50%; right: 0; left: 0; border-top: 2px dashed #c9c1f3; }
.hc-links span::after { content: ''; position: absolute; top: calc(50% - 5px); right: 0; width: 10px; height: 10px; border-radius: 50%; background: #7057e8; box-shadow: 0 0 0 4px #7057e826; animation: hc-flow 2.4s linear infinite; }
.hc-links span:nth-child(2)::after { background: #f45158; box-shadow: 0 0 0 4px #f4515826; animation-delay: -.8s; }
.hc-links span:nth-child(3)::after { background: #2fb889; box-shadow: 0 0 0 4px #2fb88926; animation-delay: -1.6s; }
@keyframes hc-flow { from { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { right: calc(100% - 10px); opacity: 0; } }

.hc-store { position: relative; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -32px #3b4f9a88, 0 0 0 1px #e6eaf6; overflow: hidden; }
.hc-store-bar { display: flex; align-items: center; gap: 5px; padding: 10px 14px; background: #10155c; direction: ltr; }
.hc-store-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f45158; }
.hc-store-bar i:nth-child(2) { background: #f2c21a; }
.hc-store-bar i:nth-child(3) { background: #42d3a1; }
.hc-store-bar b { margin-left: auto; color: #42d3a1; font-size: 14px; animation: hc-spin 2.4s linear infinite; }
@keyframes hc-spin { to { transform: rotate(360deg); } }
.hc-product { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 6px 14px; align-items: center; padding: 16px; }
.hc-product-img { grid-row: 1 / 4; position: relative; aspect-ratio: .85; border-radius: 14px; background: linear-gradient(160deg, #eef6ff, #dfe9ff); overflow: hidden; }
.hc-product-img i { position: absolute; inset: 16% 26%; border-radius: 8px; background: linear-gradient(180deg, #ffffff, #cfd8ee); box-shadow: inset 0 -38% 0 #c3cde6, 0 6px 12px -6px #3b4f9a66; }
.hc-product strong { color: #10155c; font-size: 16px; font-weight: 800; }
.hc-stock { justify-self: start; padding: 2px 10px; border-radius: 20px; background: #e3f8ef; color: #12806a; font-size: 13px; font-weight: 700; animation: hc-stock 8s infinite; }
.hc-buy { justify-self: start; padding: 6px 16px; border-radius: 30px; background: #f45158; color: #fff; font-size: 13px; font-weight: 700; animation: hc-buy 8s infinite; }
@keyframes hc-stock { 0%, 8% { opacity: .3; transform: scale(.94); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes hc-buy { 0%, 26%, 34%, 100% { transform: none; box-shadow: none; } 30% { transform: scale(.92); box-shadow: 0 0 0 6px #f4515833; } }
.hc-vendors { position: absolute; top: 46px; left: 12px; display: inline-flex; align-items: center; padding: 3px 10px 3px 4px; border-radius: 30px; background: #f6f4ff; color: #5a43d6; font-size: 13px; font-weight: 700; direction: ltr; }
.hc-vendors i { width: 20px; height: 20px; margin-right: -6px; border-radius: 50%; border: 2px solid #fff; background: #b9adff; }
.hc-vendors i:nth-child(2) { background: #ffb3b7; }
.hc-vendors i:nth-child(3) { background: #8be3c2; }
.hc-vendors em { margin-left: 10px; font-style: normal; direction: rtl; }

.hc-orders { grid-column: 1 / -1; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -34px #3b4f9a88, 0 0 0 1px #e6eaf6; }
.hc-orders-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #10155c; font-size: 14px; font-weight: 800; }
.hc-orders-head b { color: #7057e8; }
.hc-order { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px 12px; margin-top: 6px; border-radius: 12px; background: #f7f8fd; color: #10155c; font-size: 13px; opacity: 0; transform: translateY(-8px); animation: hc-order 8s infinite; }
.hc-order--1 { animation-delay: 0s; }
.hc-order--2 { animation-delay: 0s; animation-name: hc-order2; }
.hc-order--3 { animation-delay: 0s; animation-name: hc-order3; }
.hc-src { font-weight: 700; }
.hc-pay, .hc-st { padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hc-pay--cash { background: #eef0fa; color: #4b5476; }
.hc-pay--inst { background: #fff4d6; color: #a37800; }
.hc-pay--card { background: #f1eeff; color: #5a43d6; }
.hc-st--ok { background: #e3f8ef; color: #12806a; }
.hc-st--wait { background: #eaf4ff; color: #2c6fc6; }
.hc-st--new { background: #ffeff0; color: #d23a42; }
@keyframes hc-order { 0%, 14% { opacity: 0; transform: translateY(-8px); } 20%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hc-order2 { 0%, 40% { opacity: 0; transform: translateY(-8px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes hc-order3 { 0%, 64% { opacity: 0; transform: translateY(-8px); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (max-width: 991px) {
    .hc-section { padding: 64px 0; }
    .hc-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hc-copy { text-align: center; }
    .hc-features { text-align: right; }
    .hc-actions { justify-content: center; }
    .hc-visual { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
    .hc-section { padding: 48px 0; }
    .hc-section h2 { font-size: 25px; }
    .hc-copy > p { font-size: 14px; }
    .hc-features { grid-template-columns: minmax(0, 1fr); }
    .hc-visual { grid-template-columns: auto 26px minmax(0, 1fr); }
    .hc-channel { padding: 8px 10px; }
    .hc-channel i { display: none; }
    .hc-product { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; gap: 6px 10px; }
    .hc-vendors { position: static; margin: 0 12px 12px; }
    .hc-order { grid-template-columns: minmax(0, 1fr) auto; }
    .hc-order .hc-st { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-section *, .hc-section *::before, .hc-section *::after { animation: none !important; transition: none !important; }
    .hc-order { opacity: 1; transform: none; }
    .hc-links span::after { display: none; }
}
