
:root{
    --gkm:#00C5D1;
    --gkm2:#009DA8;
    --bg:#020712;
    --panel:#071523;
    --panel2:#0A192A;
    --border:#174A5E;
    --text:#F7FAFC;
    --muted:#93A6B8;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:
        radial-gradient(circle at 85% 0%,rgba(0,197,209,.08),transparent 28%),
        var(--bg);
    color:var(--text);
    font-family:Arial,Helvetica,sans-serif;
}

a{
    color:inherit;
}

/* HEADER */

.shop-header{
    position:sticky;
    top:0;
    z-index:1000;

    min-height:78px;

    padding:0 30px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:rgba(2,7,18,.94);
    border-bottom:1px solid rgba(255,255,255,.06);

    backdrop-filter:blur(18px);
}

.logo{
    display:flex;
    align-items:center;
    gap:8px;

    color:#fff;
    text-decoration:none;

    font-size:27px;
    font-weight:900;
}

.logo span{
    color:var(--gkm);
}

.shop-nav{
    display:flex;
    align-items:center;
    gap:6px;
}

.shop-nav a{
    padding:11px 13px;

    color:#D8E3EC;
    text-decoration:none;

    border-radius:9px;

    font-size:13px;
    font-weight:800;
}

.shop-nav a:hover{
    color:var(--gkm);
    background:rgba(0,197,209,.07);
}

.cart-button{
    padding:11px 16px;

    border:1px solid var(--gkm);
    border-radius:10px;

    background:#071523;
    color:var(--gkm);

    cursor:pointer;
    font-weight:900;
}

.cart-count{
    display:inline-flex;

    min-width:22px;
    height:22px;

    margin-left:6px;

    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:var(--gkm);
    color:#001217;

    font-size:11px;
}

/* MAIN */

main{
    max-width:1500px;
    margin:auto;
    padding:55px 25px 100px;
}

.hero{
    padding:15px 0 25px;
}

.hero small{
    color:var(--gkm);
    letter-spacing:3px;
    font-weight:900;
}

.hero h1{
    margin:9px 0 10px;

    font-size:clamp(36px,5vw,58px);
    letter-spacing:-2px;
}

.hero p{
    max-width:750px;

    color:var(--muted);

    font-size:17px;
    line-height:1.6;
}

/* FILTER */

.controls{
    display:grid;
    grid-template-columns:1fr 260px;
    gap:12px;

    margin:25px 0 35px;
}

.controls input,
.controls select,
.checkout-form input,
.checkout-form select,
.checkout-form textarea{
    width:100%;

    padding:15px 16px;

    background:var(--panel);
    color:white;

    border:1px solid var(--border);
    border-radius:11px;

    outline:none;
}

.controls input:focus,
.controls select:focus,
.checkout-form input:focus,
.checkout-form textarea:focus{
    border-color:var(--gkm);
}

.result{
    margin-bottom:18px;

    color:var(--gkm);

    font-size:20px;
    font-weight:900;
}

/* PRODUCT GRID */

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

.product{
    position:relative;

    display:flex;
    flex-direction:column;

    min-width:0;

    padding:12px;

    background:linear-gradient(145deg,#091727,#06111F);

    border:1px solid var(--border);
    border-radius:17px;

    transition:
        transform .22s,
        border-color .22s,
        box-shadow .22s;
}

.product:hover{
    transform:translateY(-5px);

    border-color:var(--gkm);

    box-shadow:0 16px 40px rgba(0,197,209,.09);
}

.product-link{
    color:inherit;
    text-decoration:none;
}

.photo{
    height:225px;

    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;

    background:#fff;
    border-radius:11px;
}

.photo img{
    width:100%;
    height:100%;

    padding:15px;

    object-fit:contain;

    transition:transform .25s;
}

.product:hover .photo img{
    transform:scale(1.035);
}

.brand{
    margin-top:13px;

    color:var(--gkm);

    font-size:11px;
    font-weight:900;
}

.category{
    margin-top:3px;

    color:#6E879C;

    font-size:10px;
}

.product h3{
    margin:8px 0 5px;

    font-size:16px;
    overflow-wrap:anywhere;
}

.product p{
    flex:1;

    min-height:38px;

    color:var(--muted);

    font-size:12px;
    line-height:1.5;
}

.price{
    margin-top:11px;

    font-size:23px;
    font-weight:900;
}

.vat{
    margin-top:3px;

    color:var(--muted);

    font-size:10px;
}

.product-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;

    margin-top:13px;
}

.details-button,
.add{
    min-height:43px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:10px;

    border-radius:9px;

    font-size:12px;
    font-weight:900;

    cursor:pointer;
}

.details-button{
    border:1px solid var(--border);

    background:#0B1B2C;
    color:#fff;

    text-decoration:none;
}

.details-button:hover{
    border-color:var(--gkm);
}

.add{
    border:0;

    background:var(--gkm);
    color:#001217;
}

/* CART */

.cart-overlay{
    position:fixed;
    inset:0;

    z-index:9999;

    display:none;

    background:rgba(0,0,0,.68);
}

.cart-overlay.open{
    display:block;
}

.cart{
    position:absolute;

    right:0;
    top:0;

    width:min(540px,100%);
    height:100%;

    padding:27px;

    overflow:auto;

    background:#06111F;

    border-left:1px solid var(--border);
}

.cart-head{
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:25px;
}

.close{
    border:0;

    background:none;
    color:white;

    font-size:30px;

    cursor:pointer;
}

.cart-item{
    display:grid;

    grid-template-columns:72px 1fr auto;
    gap:12px;

    padding:14px 0;

    border-bottom:1px solid #183047;
}

.cart-item img{
    width:72px;
    height:72px;

    padding:5px;

    background:white;

    object-fit:contain;

    border-radius:8px;
}

.cart-item h4{
    margin:0 0 5px;

    font-size:13px;
}

.iprice{
    color:var(--gkm);

    font-weight:900;
}

.qty{
    display:flex;
    align-items:center;
    gap:7px;

    margin-top:8px;
}

.qty button{
    width:28px;
    height:28px;

    border:1px solid var(--border);
    border-radius:6px;

    background:#0B1B2C;
    color:white;

    cursor:pointer;
}

.remove{
    margin-top:8px;

    border:0;

    background:none;
    color:#E89393;

    padding:0;

    cursor:pointer;

    font-size:11px;
}

.total{
    margin-top:25px;
    padding-top:20px;

    border-top:1px solid var(--border);
}

.total-line{
    display:flex;
    justify-content:space-between;

    font-size:27px;
    font-weight:900;
}

.total small{
    color:var(--muted);
}

.checkout{
    display:block;

    width:100%;

    margin-top:20px;
    padding:16px;

    border:0;
    border-radius:10px;

    background:var(--gkm);
    color:#001217;

    text-align:center;
    text-decoration:none;

    font-weight:900;
}

.empty{
    padding:35px 0;

    color:var(--muted);

    text-align:center;
}


/* DETAIL PAGE */

.detail-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:55px;
}

.detail-image{
    min-height:520px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#fff;

    border-radius:22px;

    padding:35px;
}

.detail-image img{
    width:100%;
    height:470px;

    object-fit:contain;
}

.detail-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;

    margin-bottom:15px;
}

.detail-tag{
    padding:7px 10px;

    border:1px solid var(--border);
    border-radius:7px;

    color:var(--gkm);

    font-size:11px;
    font-weight:900;
}

.detail-grid h1{
    margin:0 0 14px;

    font-size:clamp(32px,4vw,48px);

    overflow-wrap:anywhere;
}

.detail-description{
    color:var(--muted);

    font-size:17px;
    line-height:1.7;
}

.detail-price{
    margin:25px 0 3px;

    font-size:38px;
    font-weight:900;
}

.detail-vat{
    color:var(--muted);

    font-size:12px;
}

.detail-buy{
    display:flex;
    gap:10px;

    margin:25px 0 35px;
}

.detail-buy input{
    width:80px;

    padding:14px;

    background:var(--panel);
    color:white;

    border:1px solid var(--border);
    border-radius:9px;
}

.detail-buy button{
    flex:1;

    border:0;
    border-radius:9px;

    background:var(--gkm);
    color:#001217;

    font-weight:900;
    cursor:pointer;
}

.technical{
    margin-top:35px;
}

.technical h2 span{
    color:var(--gkm);
}

.technical table{
    width:100%;

    border-collapse:collapse;
}

.technical td{
    padding:11px 8px;

    border-bottom:1px solid #203347;

    vertical-align:top;
}

.technical td:first-child{
    width:38%;

    color:#8CA2B7;
}


/* CHECKOUT */

.checkout-layout{
    display:grid;

    grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr);
    gap:35px;
}

.checkout-panel{
    padding:28px;

    background:linear-gradient(145deg,#091727,#06111F);

    border:1px solid var(--border);
    border-radius:18px;
}

.checkout-panel h2{
    margin-top:0;
}

.form-grid{
    display:grid;

    grid-template-columns:1fr 1fr;
    gap:14px;
}

.form-full{
    grid-column:1/-1;
}

.checkout-form label{
    display:block;

    margin-bottom:6px;

    color:#B9C7D4;

    font-size:12px;
    font-weight:700;
}

.order-row{
    display:grid;

    grid-template-columns:55px 1fr auto;
    gap:12px;

    padding:12px 0;

    border-bottom:1px solid #203347;
}

.order-row img{
    width:55px;
    height:55px;

    padding:4px;

    background:#fff;

    object-fit:contain;

    border-radius:7px;
}

.order-row strong{
    font-size:12px;
}

.summary-line{
    display:flex;
    justify-content:space-between;

    margin-top:14px;
}

.summary-grand{
    font-size:26px;
    font-weight:900;
}

.order-button{
    width:100%;

    margin-top:22px;
    padding:16px;

    border:0;
    border-radius:10px;

    background:var(--gkm);
    color:#001217;

    font-weight:900;

    cursor:pointer;
}

.order-button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.notice{
    margin-top:16px;

    padding:13px;

    background:#081A27;

    border:1px solid var(--border);
    border-radius:9px;

    color:#93A6B8;

    font-size:12px;
    line-height:1.5;
}

.success{
    display:none;

    margin-top:20px;
    padding:25px;

    border:1px solid var(--gkm);
    border-radius:14px;

    background:#071B24;
}

.success.show{
    display:block;
}

@media(max-width:1100px){
    .grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:900px){

    .shop-nav{
        display:none;
    }

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

    .detail-grid,
    .checkout-layout{
        grid-template-columns:1fr;
    }
}

@media(max-width:560px){

    main{
        padding:35px 14px 80px;
    }

    .shop-header{
        padding:0 14px;
    }

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

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

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

    .form-full{
        grid-column:auto;
    }

    .detail-image{
        min-height:360px;
    }

    .detail-image img{
        height:320px;
    }
}
