
/* =========================
   KNNB COLLECTION
   STYLE.CSS
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

:root{
    --rose:#c76b8a;
    --gold:#d4af37;
    --dark:#222;
    --light:#ffffff;
    --bg:#f8f8f8;
}

body{
    background:var(--bg);
    color:var(--dark);
}

/* Header */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
    text-decoration:none;
    color:#000;
    font-size:28px;
    font-weight:bold;
}

.logo-img{
    width:150px;
    margin-right:10px;
}

.logo em{
    color:var(--rose);
    font-style:normal;
}

nav a{
    text-decoration:none;
    color:#222;
    margin:0 15px;
    font-weight:600;
    transition:.3s;
}

nav a:hover,
nav .active{
    color:var(--rose);
}



/* Hero */

.hero{
    text-align:center;
    padding:90px 20px;
    background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
    url(images/banner.jpg);
    background-size:cover;
    background-position:center;
    color:#fff;
}

.hero-tag{
    display:inline-block;
    background:var(--gold);
    color:#fff;
    padding:8px 18px;
    border-radius:20px;
    margin-bottom:20px;
}

.hero h1{
    font-size:55px;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    max-width:700px;
    margin:auto;
}

.hero-btns{
    margin-top:30px;
}

.btn-primary,
.btn-outline{
    display:inline-block;
    padding:13px 28px;
    text-decoration:none;
    border-radius:30px;
    margin:8px;
    transition:.3s;
}

.btn-primary{
    background:var(--rose);
    color:#fff;
}

.btn-outline{
    border:2px solid #fff;
    color:#fff;
}

.btn-primary:hover{
    background:#a94e6d;
}

.btn-outline:hover{
    background:#fff;
    color:#000;
}

/* Section */

section{
    padding:70px 8%;
}

.section-header{
    text-align:center;
    margin-bottom:40px;
}

.section-header h2{
    font-size:38px;
}

.divider{
    width:90px;
    height:4px;
    background:var(--rose);
    margin:15px auto;
}

/* Grid */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

/* Card */

.card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card-img{
    position:relative;
    overflow:hidden;
}

.card-img img{
    width:100%;
    display:block;
    transition:.4s;
}

.card:hover img{
    transform:scale(1.08);
}

.card-badge{
    position:absolute;
    top:12px;
    left:12px;
    background:var(--rose);
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
}

.card-body{
    padding:20px;
}

.card-body h3{
    margin-bottom:10px;
}

.price{
    color:var(--rose);
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;
}

.price del{
    color:#888;
    font-size:15px;
    margin-left:8px;
}

.card-actions{
    display:flex;
    gap:10px;
}

.btn-card{
    flex:1;
    text-align:center;
    text-decoration:none;
    padding:10px;
    border-radius:8px;
    font-weight:bold;
}

.btn-card-view{
    background:#eee;
    color:#000;
}

.btn-card-buy{
    background:var(--rose);
    color:#fff;
}

/* Footer */

footer{
    background:#111;
    color:#fff;
    padding:50px 8%;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.footer-col ul{
    list-style:none;
}

.footer-col li{
    margin:12px 0;
}

.footer-col a{
    color:#ddd;
    text-decoration:none;
}

.footer-bottom{
    border-top:1px solid #444;
    margin-top:30px;
    padding-top:20px;
    text-align:center;
}

/* Mobile */

@media(max-width:768px){

header{
    flex-direction:column;
    gap:15px;
}

nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

.hero h1{
    font-size:38px;
}

.search-wrap input{
    width:100%;
}

}

/* =========================
   EXTRA RESPONSIVE FIXES
========================= */

/* Better scaling for large screens */
@media (max-width: 1024px){

.hero h1{
    font-size:45px;
}

.search-wrap input{
    width:180px;
}

}

/* Tablets */
@media (max-width: 768px){

header{
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:15px;
}

nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}

nav a{
    margin:5px;
}

.hero{
    padding:70px 15px;
}

.hero h1{
    font-size:36px;
}

.hero p{
    font-size:15px;
}

.search-wrap input{
    width:100%;
}

/* cards spacing better */
.grid{
    gap:20px;
}

.card-actions{
    flex-direction:column;
}

.btn-card{
    width:100%;
}

}

/* Mobile phones */
@media (max-width: 480px){

.hero h1{
    font-size:28px;
}

.hero p{
    font-size:14px;
}

.section-header h2{
    font-size:28px;
}

.logo{
    font-size:22px;
}

.logo-img{
    width:40px;
}

.btn-primary,
.btn-outline{
    width:100%;
    text-align:center;
}

.search-wrap input{
    font-size:14px;
}

}

/* Ultra small devices */
@media (max-width: 360px){

.hero h1{
    font-size:24px;
}

nav a{
    font-size:14px;
}

}