:root{
--bg:#050505;
--bg2:#0d0d0d;
--card:rgba(255,255,255,.035);
--card-solid:#111;
--border:rgba(255,255,255,.08);
--text:#fff;
--muted:#9a9a9a;
--danger:#ff3b30;
--radius:22px;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:"Segoe UI",sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
background:var(--bg);
color:var(--text);
overflow-x:hidden;
}

/* Announcement */

.announcement{
background:white;
color:black;
text-align:center;
padding:11px;
font-size:.9rem;
font-weight:900;
}

/* Navbar */

nav{
position:sticky;
top:0;
z-index:1000;
display:flex;
justify-content:space-between;
align-items:center;
padding:22px 55px;
background:rgba(5,5,5,.92);
backdrop-filter:blur(14px);
border-bottom:1px solid var(--border);
}

.logo{
font-size:2rem;
font-weight:900;
letter-spacing:1px;
}

.nav-links{
display:flex;
align-items:center;
gap:26px;
}

.nav-links a{
color:white;
text-decoration:none;
font-weight:700;
transition:.25s;
}

.nav-links a:hover{
color:#aaa;
}

/* Buttons */

button,
.shop-btn,
.secondary-btn,
.checkout-btn,
.pay-btn{
border:none;
cursor:pointer;
transition:.25s;
}

button,
.shop-btn,
.checkout-btn,
.pay-btn{
background:white;
color:black;
padding:15px 28px;
border-radius:14px;
font-weight:900;
text-decoration:none;
display:inline-block;
}

.secondary-btn{
background:transparent;
color:white;
border:1px solid #444;
padding:15px 28px;
border-radius:14px;
font-weight:900;
text-decoration:none;
display:inline-block;
}

button:hover,
.shop-btn:hover,
.checkout-btn:hover,
.pay-btn:hover,
.secondary-btn:hover{
transform:translateY(-3px);
box-shadow:0 0 25px rgba(255,255,255,.16);
}

/* Home */

.home-hero{
min-height:90vh;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
padding:100px 20px;
background:
radial-gradient(circle at top,rgba(255,255,255,.1),transparent 45%),
linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.95)),
url("images/backg.jpg");
background-size:cover;
background-position:center;
}

.hero-content{
max-width:950px;
}

.eyebrow{
color:#aaa;
text-transform:uppercase;
letter-spacing:4px;
font-weight:900;
margin-bottom:16px;
}

.home-hero h1{
font-size:5.4rem;
line-height:.95;
margin-bottom:22px;
}

.home-hero p{
color:#c7c7c7;
font-size:1.25rem;
margin-bottom:32px;
}

.hero-buttons{
display:flex;
justify-content:center;
gap:16px;
flex-wrap:wrap;
}

/* Sections */

.features,
.featured-section,
.shop-grid,
.cart-container,
.checkout-container{
max-width:1500px;
margin:auto;
}

.features{
padding:70px 30px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
}

.feature-card,
.pc,
.pc-card,
.cart-card,
.cart-item,
.checkout-form,
.summary-card,
.summary,
.success-card,
.cancel-card{
background:var(--card);
border:1px solid var(--border);
border-radius:var(--radius);
box-shadow:0 15px 35px rgba(0,0,0,.28);
}

.feature-card{
padding:32px;
transition:.25s;
}

.feature-card:hover,
.pc:hover,
.pc-card:hover{
transform:translateY(-7px);
border-color:#444;
}

.feature-card p{
color:var(--muted);
margin-top:10px;
}

/* Featured */

.featured-section{
padding:75px 30px;
}

.section-title{
text-align:center;
margin-bottom:42px;
}

.section-title h2{
font-size:3.2rem;
}

.section-title p{
color:var(--muted);
margin-top:10px;
}

.featured-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(310px,1fr));
gap:26px;
}

.pc{
overflow:hidden;
transition:.25s;
}

.pc img{
width:100%;
height:245px;
object-fit:cover;
}

.pc h2,
.pc p,
.pc a{
margin:20px;
}

.pc p{
color:var(--muted);
}

.pc a{
display:inline-block;
background:white;
color:black;
text-decoration:none;
padding:12px 18px;
border-radius:12px;
font-weight:900;
}

/* CTA */

.cta-section{
text-align:center;
padding:90px 20px;
background:#0d0d0d;
border-top:1px solid var(--border);
border-bottom:1px solid var(--border);
}

.cta-section h2{
font-size:3.2rem;
margin-bottom:12px;
}

.cta-section p{
color:var(--muted);
margin-bottom:26px;
}

/* Shop */

.shop-header{
text-align:center;
padding:60px 20px 25px;
}

.shop-header h1{
font-size:4rem;
}

.shop-header p{
color:var(--muted);
margin-top:10px;
}

.shop-controls{
display:flex;
justify-content:center;
gap:15px;
padding:25px 20px;
flex-wrap:wrap;
}

#searchInput,
#sortSelect{
padding:15px;
background:#111;
border:1px solid #333;
border-radius:14px;
color:white;
font-size:1rem;
}

#searchInput{
width:340px;
}

#searchInput:focus,
#sortSelect:focus{
outline:none;
border-color:white;
}

.shop-grid{
padding:35px 30px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:26px;
}

.pc-card{
overflow:hidden;
transition:.25s;
}

.pc-card img{
width:100%;
height:265px;
object-fit:cover;
}

.pc-info{
padding:24px;
}

.pc-info h2{
margin-bottom:15px;
}

.spec{
color:#aaa;
margin-bottom:8px;
}

.price{
font-size:2.1rem;
font-weight:900;
margin:18px 0;
}

/* Cart */

.cart-container{
padding:40px 30px;
display:grid;
grid-template-columns:2fr 1fr;
gap:30px;
}

.cart-card,
.cart-item{
padding:22px;
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin-bottom:20px;
}

.product-info{
display:flex;
align-items:center;
gap:20px;
}

.product-info img{
width:125px;
height:125px;
object-fit:cover;
border-radius:16px;
}

.controls{
display:flex;
align-items:center;
gap:10px;
}

.controls button{
padding:10px 14px;
border-radius:10px;
}

.quantity{
font-weight:900;
font-size:18px;
}

.remove-btn,
.clear-cart-btn{
background:var(--danger);
color:white;
border:none;
}

.remove-btn{
width:44px;
height:44px;
border-radius:12px;
font-size:20px;
}

.clear-cart-btn{
width:100%;
margin-top:15px;
padding:15px;
border-radius:14px;
font-weight:900;
}

.summary-card,
.summary{
padding:32px;
height:fit-content;
position:sticky;
top:105px;
}

.checkout-btn{
width:100%;
text-align:center;
margin-top:20px;
}

.total{
font-size:2.1rem;
font-weight:900;
margin-top:20px;
}

/* Checkout */

.checkout-container{
padding:40px 30px;
display:grid;
grid-template-columns:2fr 1fr;
gap:30px;
}

.checkout-form{
padding:32px;
}

.checkout-form h2,
.summary-card h2{
margin-bottom:25px;
}

.input-group{
margin-bottom:20px;
}

.input-group label{
display:block;
margin-bottom:8px;
font-weight:800;
}

.input-group input,
.input-group textarea{
width:100%;
padding:15px;
background:#050505;
border:1px solid #333;
border-radius:14px;
color:white;
font-size:15px;
}

.input-group input:focus,
.input-group textarea:focus{
outline:none;
border-color:white;
}

.form-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
}

.order-item{
display:flex;
justify-content:space-between;
gap:15px;
margin-bottom:12px;
color:#bbb;
}

/* Shipping */

.shipping-options{
display:flex;
flex-direction:column;
gap:12px;
}

.shipping-option{
display:flex;
gap:14px;
align-items:flex-start;
padding:16px;
background:#050505;
border:1px solid #333;
border-radius:14px;
cursor:pointer;
transition:.25s;
}

.shipping-option:hover{
border-color:white;
}

.shipping-option input{
width:auto;
margin-top:4px;
}

.shipping-option p{
color:white;
margin:4px 0;
font-weight:800;
}

.shipping-option span{
color:#999;
font-size:.9rem;
}

/* Success / Cancel */

.success-container,
.cancel-container{
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
padding:20px;
background:#000;
}

.success-card,
.cancel-card{
max-width:700px;
width:100%;
padding:58px;
text-align:center;
}

.success-icon,
.cancel-icon{
font-size:88px;
margin-bottom:20px;
}

.home-btn,
.retry-btn,
.cart-btn{
display:inline-block;
padding:15px 28px;
border-radius:14px;
font-weight:900;
text-decoration:none;
margin:8px;
}

.home-btn,
.retry-btn{
background:white;
color:black;
}

.cart-btn{
background:var(--danger);
color:white;
}

/* Footer */

footer{
text-align:center;
padding:50px 20px;
color:#777;
border-top:1px solid var(--border);
background:#070707;
}

.admin-footer-link{
display:inline-block;
margin-top:12px;
color:#777;
text-decoration:none;
font-size:.9rem;
transition:.25s;
}

.admin-footer-link:hover{
color:white;
}

/* Mobile */

@media(max-width:900px){

nav{
flex-direction:column;
gap:15px;
padding:20px;
}

.nav-links{
flex-wrap:wrap;
justify-content:center;
}

.home-hero h1{
font-size:3rem;
}

.shop-header h1,
.section-title h2,
.cta-section h2{
font-size:2.5rem;
}

.cart-container,
.checkout-container{
grid-template-columns:1fr;
padding:20px;
}

.form-row{
grid-template-columns:1fr;
}

.summary-card,
.summary{
position:relative;
top:0;
}

.cart-card,
.cart-item{
flex-direction:column;
text-align:center;
}

.product-info{
flex-direction:column;
}

}