*{
    box-sizing:border-box;
}

:root{
    --primary:#111827;
    --muted:#6b7280;
    --line:#e5e7eb;
    --bg:#f8fafc;
    --card:#ffffff;
    --soft:#f1f5f9;
    --radius:22px;
    --shadow:0 12px 34px rgba(15,23,42,.08);
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:var(--bg);
    color:#111827;
    padding-bottom:0;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    height:auto;
}

.container{
    width:min(1240px, calc(100% - 32px));
    margin:0 auto;
}

.card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.primary-btn,
.secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 20px;
    border-radius:14px;
    font-weight:900;
    border:0;
    cursor:pointer;
}

.primary-btn{
    background:#111827;
    color:#fff;
}

.secondary-btn{
    background:#fff;
    color:#111827;
    border:1px solid #d1d5db;
}

.site-header{
    position:sticky;
    top:0;
    z-index:700;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--line);
}

.header-main-row{
    min-height:82px;
    display:grid;
    grid-template-columns:auto minmax(260px, 1fr) auto;
    gap:22px;
    align-items:center;
}

.site-logo{
    font-size:26px;
    font-weight:950;
    letter-spacing:-.04em;
    color:#0f172a;
}

.site-logo span{
    color:#0f766e;
}

.header-search-form{
    position:relative;
}

.header-search-box{
    position:relative;
    display:flex;
    gap:8px;
}

.header-search-box input{
    width:100%;
    min-height:46px;
    border:1px solid #cbd5e1;
    border-radius:14px;
    padding:0 14px;
    outline:none;
    background:#fff;
}

.header-search-box button{
    border:0;
    border-radius:14px;
    background:#111827;
    color:#fff;
    font-weight:800;
    padding:0 16px;
    cursor:pointer;
}

.header-action-row{
    display:flex;
    align-items:center;
    gap:8px;
}

.header-icon-btn{
    border:1px solid #d1d5db;
    background:#fff;
    min-height:40px;
    padding:0 12px;
    border-radius:12px;
    font-weight:800;
    cursor:pointer;
}

.app-main{
    min-height:68vh;
}

.site-footer{
    background:#0f172a;
    color:#fff;
    margin-top:56px;
    padding:36px 0 90px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:26px;
}

.footer-grid p,
.footer-grid a{
    color:#cbd5e1;
    display:block;
    margin-top:8px;
    line-height:1.7;
}

.footer-bottom{
    margin-top:24px;
    color:#94a3b8;
    border-top:1px solid rgba(255,255,255,.12);
    padding-top:18px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:18px;
}

.product-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.product-card-image{
    display:flex;
    align-items:center;
    justify-content:center;
    aspect-ratio:1/1;
    background:#f8fafc;
}

.product-card-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:18px;
}

.product-card-body{
    padding:16px;
}

.product-card-title{
    margin:0;
    font-size:15px;
    line-height:1.4;
}

.product-card-price{
    margin-top:10px;
    font-size:18px;
    font-weight:950;
}

.product-card-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:14px;
}

.product-card-actions button{
    min-height:38px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    font-weight:800;
    cursor:pointer;
}

.product-card-actions button:first-child{
    background:#111827;
    color:#fff;
    border-color:#111827;
}

.drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px;
    border-bottom:1px solid var(--line);
}

.drawer-close{
    width:36px;
    height:36px;
    border:0;
    border-radius:12px;
    background:#f3f4f6;
    font-size:22px;
    cursor:pointer;
}

.menu-drawer{
    position:fixed;
    right:0;
    top:0;
    width:360px;
    max-width:92vw;
    height:100vh;
    background:#fff;
    z-index:1002;
    transform:translateX(100%);
    transition:.25s ease;
    box-shadow:none;
}

.menu-drawer.active{
    transform:translateX(0);
}

.menu-drawer-links{
    display:grid;
    padding:18px;
    gap:10px;
}

.menu-drawer-links a{
    padding:14px;
    border-radius:14px;
    background:#f8fafc;
    font-weight:900;
}

.menu-backdrop{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:1001;
    opacity:0;
    visibility:hidden;
}

body.menu-open .menu-backdrop{
    opacity:1;
    visibility:visible;
}

@media(max-width:1000px){
    .header-main-row{
        grid-template-columns:1fr auto;
        gap:12px;
        padding:12px 0;
    }

    .header-search-form{
        grid-column:1/-1;
    }

    .product-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    body{
        padding-bottom:74px;
    }

    .site-logo{
        font-size:24px;
    }

    .header-action-row{
        gap:5px;
    }

    .header-icon-btn{
        font-size:12px;
        padding:0 9px;
    }

    .header-search-box button{
        display:none;
    }

    .product-grid{
        gap:12px;
    }

    .product-card-body{
        padding:12px;
    }

    .product-card-title{
        font-size:13px;
    }
}


/* SR Power final polish: prevent accidental horizontal edge glow on frontend. */
html, body{
    max-width:100%;
    overflow-x:hidden;
}

.menu-drawer,
.cart-drawer{
    box-shadow:none!important;
}


/* SR Power CMS-driven storefront menu drawer */
.menu-drawer{
    width:min(410px,92vw);
    height:100dvh;
    display:flex;
    flex-direction:column;
    background:#ffffff;
    border-left:1px solid #e8eef5;
    box-shadow:-24px 0 60px rgba(15,23,42,.12)!important;
    transition:transform .28s cubic-bezier(.22,1,.36,1);
}
.menu-drawer__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:24px 24px 20px;
    border-bottom:1px solid #edf2f7;
}
.menu-drawer__eyebrow{display:block;margin-bottom:4px;color:#0f766e;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.menu-drawer__header h2{margin:0;color:#0f172a;font-size:26px;line-height:1.1;letter-spacing:-.035em}
.menu-drawer__close{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#0f172a;font-size:25px;line-height:1;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.menu-drawer__close:hover,.menu-drawer__close:focus-visible{background:#eefcf9;border-color:#99f6e4;outline:none;transform:translateY(-1px)}
.menu-drawer__body{flex:1;overflow-y:auto;padding:18px 20px 28px}
.menu-drawer__links{display:grid;gap:9px}
.menu-drawer__links a{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:58px;padding:14px 16px;border:1px solid #e7edf4;border-radius:16px;background:#fbfdff;color:#172033;text-decoration:none;font-size:15px;font-weight:850;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.menu-drawer__links a:hover,.menu-drawer__links a:focus-visible{background:#f0fdfa;border-color:#99f6e4;outline:none;transform:translateX(-2px)}
.menu-drawer__arrow{color:#0f766e;font-size:18px;transition:transform .18s ease}
.menu-drawer__links a:hover .menu-drawer__arrow,.menu-drawer__links a:focus-visible .menu-drawer__arrow{transform:translateX(3px)}
.menu-drawer__empty{display:grid;gap:8px;padding:22px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b}
.menu-drawer__empty strong{color:#0f172a;font-size:16px}
.menu-drawer__empty span{font-size:13px;line-height:1.6}
.menu-backdrop{background:rgba(15,23,42,.32);backdrop-filter:blur(2px);transition:opacity .24s ease,visibility .24s ease}
body.menu-open{overflow:hidden}
