@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--navy:#171717;--blue:#f07818;--purple:#df342e;--yellow:#ffd21f;--orange:#f07818;--red:#df342e;--ink:#171717;--muted:#666;--line:#ece7df;--soft:#fffaf0}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:'DM Sans',Arial,sans-serif;background:#fff}a{color:var(--blue);text-decoration:none}.container{width:min(1160px,92%);margin:36px auto 70px}.announcement{background:linear-gradient(90deg,#171717 0%,#f07818 55%,#df342e 100%);color:#fff;text-align:center;padding:10px 16px;font-size:14px;font-weight:700;min-height:38px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:14px max(4%,calc((100% - 1160px)/2));border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;color:var(--navy);font-family:Manrope;font-weight:800}.brand img{width:min(280px,48vw);height:76px;object-fit:contain;object-position:left center}.site-header nav{display:flex;gap:22px;align-items:center;flex-wrap:wrap}.site-header nav a{color:#405566;font-size:14px;font-weight:600}.hero{background:linear-gradient(120deg,#fff8d9,#fff0df 55%,#fff);padding:64px max(4%,calc((100% - 1160px)/2));display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:40px;min-height:410px}.hero h1{font:800 clamp(36px,5vw,60px)/1.08 Manrope;margin:14px 0;color:var(--navy);max-width:680px}.hero h1 em{color:var(--purple);font-style:normal}.hero p{color:#536b7b;font-size:18px;line-height:1.7;max-width:580px}.hero-art{display:flex;justify-content:center}.hero-art img{width:min(100%,430px);max-height:280px;object-fit:contain;filter:drop-shadow(0 15px 25px #19364a18)}.eyebrow{color:var(--purple);font-size:12px;letter-spacing:2px;font-weight:800}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:#fff;border:0;border-radius:9px;padding:13px 20px;font-weight:700;cursor:pointer;font-size:14px}.btn:hover{background:#df342e;color:white}.btn.small{padding:9px 13px;font-size:12px}.trust-row{display:flex;justify-content:center;gap:36px;flex-wrap:wrap;padding:20px;border-bottom:1px solid var(--line);color:#526978;font-size:13px;font-weight:600}#catalog{width:min(1160px,92%);margin:65px auto}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}.section-head h2,.inquiry h2{font:800 30px Manrope;margin:8px 0}.filters{display:flex;gap:15px;flex-wrap:wrap}.filters a{font-size:13px;font-weight:700}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.product-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:#fff;min-width:0;box-shadow:0 8px 28px #15384a08;transition:.2s}.product-card:hover{transform:translateY(-4px);box-shadow:0 15px 35px #15384a14}.thumb{height:220px;background:#f2f6f8;display:block;position:relative;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.type-tag{position:absolute;top:12px;left:12px;background:#fff;color:var(--purple);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;padding:7px 10px;border-radius:30px}.type-tag.static{position:static;display:inline-block}.product-info{padding:18px}.product-info h3{font:700 17px Manrope;margin:0 0 8px}.product-info h3 a{color:var(--navy)}.product-info p{font-size:13px;line-height:1.6;color:var(--muted);min-height:42px}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px}.product-bottom strong,.price-large{font:800 22px Manrope;color:var(--purple)}.placeholder{height:100%;display:grid;place-items:center;color:#7992a0;font:800 24px Manrope;background:linear-gradient(135deg,#e8f0f5,#f6edf7)}.empty{padding:35px;text-align:center;background:var(--soft);border-radius:12px;color:var(--muted);grid-column:1/-1}.inquiry{background:var(--soft);padding:42px max(4%,calc((100% - 1160px)/2));display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.inquiry p{color:var(--muted)}.inquiry-form,.panel form{display:grid;gap:13px}.inquiry-form input,.inquiry-form textarea,.panel input:not([type=checkbox]),.panel textarea,.panel select,.qty{width:100%;padding:13px;border:1px solid #dce6ec;border-radius:8px;font:inherit;background:#fff}.inquiry-form textarea,.panel textarea{min-height:100px;resize:vertical}.footer{background:#171717;color:#fff;padding:38px max(4%,calc((100% - 1160px)/2));display:grid;grid-template-columns:1fr 1fr;gap:20px}.footer a{color:#fff}.footer small{grid-column:1/-1;color:#d4d4d4}.float-actions{position:fixed;right:18px;bottom:20px;display:grid;gap:10px;z-index:30}.float-actions a{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:25px;box-shadow:0 5px 20px #0003}.float-call{background:#f07818}.float-wa{background:#25a45a}.detail{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:start}.detail-image{background:var(--soft);border-radius:16px;overflow:hidden;aspect-ratio:4/3}.detail-image img{width:100%;height:100%;object-fit:contain}.detail h1{font:800 34px Manrope;color:var(--navy)}.description{line-height:1.8;color:#536978;margin:20px 0}.qty{width:85px!important;margin:10px}.cart-list{display:grid;gap:12px}.cart-item,.order-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.cart-item img{width:65px;height:60px;object-fit:cover;border-radius:8px}.cart-item div{flex:1}.cart-total{text-align:right;font:800 24px Manrope;margin:25px 0}.checkout{display:grid;grid-template-columns:1.3fr .7fr;gap:25px;align-items:start}.panel{border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff;box-shadow:0 8px 25px #17374a08;margin:16px 0}.panel label{display:grid;gap:7px;font-size:13px;font-weight:700}.muted{color:var(--muted);font-size:13px}.payment-box,.auth{max-width:580px;margin:50px auto}.notice{background:#fff4e5;color:#8b4a00;padding:12px;border-radius:8px}.status{font-size:12px;text-transform:uppercase;font-weight:800;color:var(--purple)}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.admin-links{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.admin-top{display:flex;justify-content:space-between;align-items:center}.admin-form{max-width:700px}.admin-form label{margin:7px 0}.admin-form input[type=file]{font-size:13px}
@media(max-width:800px){.site-header{align-items:flex-start;flex-direction:column;padding:12px 4%;position:static}.site-header nav{gap:12px}.hero{grid-template-columns:1fr;padding-top:45px;padding-bottom:45px}.hero-art img{max-height:190px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inquiry{grid-template-columns:1fr}.detail{grid-template-columns:1fr}.checkout{grid-template-columns:1fr}.admin-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.container{margin-top:24px}.brand img{width:40px;height:40px}.brand{font-size:14px}.site-header nav{gap:10px}.site-header nav a{font-size:12px}.hero{gap:20px;min-height:0}.hero h1{font-size:37px}.hero p{font-size:15px}.trust-row{gap:10px;justify-content:flex-start;font-size:11px}.section-head{align-items:flex-start;flex-direction:column}.section-head h2{font-size:24px}.product-grid{grid-template-columns:1fr;gap:16px}.thumb{height:auto;aspect-ratio:16/10}.product-info{padding:15px}.inquiry{padding-top:32px;padding-bottom:32px}.inquiry h2{font-size:25px}.footer{grid-template-columns:1fr;padding-top:30px}.footer small{grid-column:auto}.cart-item{gap:9px;flex-wrap:wrap}.cart-item img{width:55px}.panel{padding:17px}.admin-grid{grid-template-columns:1fr 1fr}.admin-top{align-items:flex-start;flex-direction:column}.float-actions{right:12px;bottom:12px}.float-actions a{width:46px;height:46px}}

/* Brand refresh and robust product-image fallbacks */
.brand{min-width:0}
.brand img{display:block;background:#fff}
.image-missing{background:linear-gradient(135deg,#fff3c4,#ffe1cf)!important;display:grid!important;place-items:center}
.image-missing:after{content:'IMAGE NOT UPLOADED';font:700 12px 'DM Sans',Arial,sans-serif;letter-spacing:1px;color:#777}
.thumb img{object-fit:cover;object-position:center}
.detail-image.image-missing{min-height:260px}
.announcement{color:#fff}
.btn{background:var(--orange)}
.product-bottom strong,.price-large{color:var(--red)}
.type-tag{color:var(--red)}
@media(max-width:520px){.brand img{width:min(250px,82vw);height:62px}}


/* SMART CNC ACADEMY — complete yellow / orange / red / black / white theme */
:root{
 --navy:#171717;--blue:#f07818;--purple:#df342e;--yellow:#ffd21f;
 --orange:#f07818;--red:#df342e;--ink:#171717;--muted:#666;
 --line:#eee5d9;--soft:#fff8e7;--brand-black:#171717;
}
body{background:#fff;color:#171717}
a{color:#df342e}
.site-header{background:#fff;border-bottom:3px solid #ffd21f;box-shadow:0 5px 22px #1717170b}
.brand{flex:0 1 auto;max-width:48%;}
.brand img{width:clamp(260px,34vw,440px);height:92px;object-fit:contain;object-position:left center;background:#fff}
.site-header nav a{color:#171717}
.site-header nav a:hover,.filters a:hover{color:#df342e}
.announcement{background:linear-gradient(90deg,#171717 0%,#df342e 48%,#f07818 78%,#ffd21f 100%);color:#fff}
.hero{background:linear-gradient(120deg,#fff4bf 0%,#ffe2c4 54%,#fff 100%);border-bottom:1px solid #ffe0a1}
.hero h1{color:#171717}
.hero h1 em,.eyebrow{color:#df342e}
.hero p,.description{color:#555}
.hero-art img{width:min(100%,480px);max-height:310px;filter:drop-shadow(0 12px 20px #17171714)}
.btn{background:#f07818;color:#fff;border:2px solid #f07818}
.btn:hover,.btn:focus{background:#df342e;border-color:#df342e;color:#fff}
.btn:active{transform:translateY(1px)}
.product-card{border-color:#f0e3d2;box-shadow:0 8px 26px #1717170c}
.product-card:hover{border-color:#ffd21f;box-shadow:0 14px 32px #f0781820}
.thumb{background:#fff4d4}
.type-tag{color:#171717;background:#ffd21f}
.product-bottom strong,.price-large,.status{color:#df342e}
.product-info h3 a,.detail h1{color:#171717}
.placeholder{color:#5b5144;background:linear-gradient(135deg,#fff1b8,#ffe0c9)}
.empty,.inquiry{background:#fff8e7}
.inquiry{border-top:4px solid #ffd21f}
.inquiry-form input,.inquiry-form textarea,.panel input:not([type=checkbox]),.panel textarea,.panel select,.qty{border-color:#ead9c5}
.inquiry-form input:focus,.inquiry-form textarea:focus,.panel input:focus,.panel textarea:focus,.panel select:focus{outline:2px solid #ffd21f;border-color:#f07818}
.footer{background:#171717;color:#fff;border-top:5px solid #df342e}
.footer a{color:#ffd21f}
.float-call{background:#df342e}
.float-wa{background:#20a65a}
.panel{border-color:#eee1d1;box-shadow:0 8px 25px #1717170c}
.notice{background:#fff1c2;color:#7a3d00;border-left:4px solid #f07818}
.admin-links .btn:nth-child(odd){background:#171717;border-color:#171717}
.admin-links .btn:nth-child(even){background:#f07818;border-color:#f07818}
@media(max-width:800px){.brand{max-width:100%}.brand img{width:min(440px,88vw);height:78px}}
@media(max-width:520px){.brand img{width:min(380px,88vw);height:68px}.site-header nav a{color:#171717}.hero{background:linear-gradient(150deg,#fff4bf,#ffe2c4 65%,#fff)}.hero-art img{max-height:210px}}
