/* =========================
RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
font-family: Arial, sans-serif;
color: #202020;
background: #ffffff;
line-height: 1.6;
}

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

button,
input {
font-family: inherit;
}

/* =========================
NAVBAR
========================= */

header {
position: sticky;
top: 0;
z-index: 1000;
background: white;
border-bottom: 1px solid #eeeeee;
}

.navbar {
max-width: 1200px;
min-height: 75px;
margin: auto;
padding: 0 30px;


display: flex;
align-items: center;
gap: 30px;


}

.logo,
.footer-logo {
font-size: 27px;
font-weight: 800;
white-space: nowrap;
}

.logo span,
.footer-logo span,
.hero h1 span,
.section-title span,
.offer h2 span {
color: #e86b35;
}

.search-box {
flex: 1;
max-width: 500px;
margin: auto;


display: flex;
background: #f5f5f5;
border-radius: 8px;
overflow: hidden;


}

.search-box input {
width: 100%;
padding: 13px 16px;
border: none;
outline: none;
background: transparent;
}

.search-box button {
width: 50px;
border: none;
background: transparent;
cursor: pointer;
}

.nav-actions {
display: flex;
align-items: center;
gap: 12px;
}

.icon-btn,
.cart-btn {
border: none;
background: transparent;
cursor: pointer;
font-size: 20px;
}

.cart-btn {
position: relative;
}

#cartCount {
position: absolute;
top: -10px;
right: -10px;


min-width: 18px;
height: 18px;
padding: 0 4px;

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

border-radius: 50%;
background: #e86b35;
color: white;

font-size: 11px;


}

.menu-btn {
display: none;
border: none;
background: transparent;
font-size: 25px;
cursor: pointer;
}

.mobile-menu {
display: none;
}

/* =========================
HERO
========================= */

.hero {
max-width: 1200px;
min-height: 600px;
margin: auto;
padding: 70px 30px;


display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 70px;


}

.tagline,
.section-title > p:first-child,
.products-heading > div > p,
.newsletter p {
color: #e86b35;
font-size: 13px;
font-weight: 700;
letter-spacing: 1.5px;
}

.hero h1 {
font-size: clamp(45px, 6vw, 72px);
line-height: 1.05;
margin: 15px 0;
}

.hero-content > p:not(.tagline) {
max-width: 520px;
color: #666;
font-size: 17px;
margin-bottom: 30px;
}

.hero-buttons {
display: flex;
gap: 15px;
}

.shop-btn {
padding: 13px 25px;
background: #e86b35;
color: white;
border-radius: 6px;
font-weight: bold;
}

.outline-btn {
padding: 12px 24px;
border: 1px solid #e86b35;
color: #e86b35;
border-radius: 6px;
font-weight: bold;
}

/* =========================
HERO PRODUCT
========================= */

.hero-product {
position: relative;
min-height: 450px;
padding: 35px;


background: #f7eee9;
border-radius: 25px;

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


}

.discount-badge {
position: absolute;
top: 25px;
right: 25px;


padding: 10px 15px;
border-radius: 50px;

background: #e86b35;
color: white;
font-size: 13px;
font-weight: bold;


}

.product-display {
width: 250px;
height: 250px;


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

border-radius: 50%;
background: white;

font-size: 130px;

box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);


}

.hero-product-info {
text-align: center;
margin-top: 25px;
}

.hero-product-info p {
color: #777;
font-size: 14px;
}

.hero-product-info h3 {
font-size: 23px;
margin: 5px 0;
}

.price strong {
font-size: 25px;
}

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

/* =========================
COMMON SECTION
========================= */

.section {
max-width: 1200px;
margin: auto;
padding: 90px 30px;
}

.section-title {
margin-bottom: 45px;
}

.section-title h2,
.products-heading h2 {
font-size: 42px;
line-height: 1.2;
margin-top: 8px;
}

/* =========================
CATEGORIES
========================= */

.category-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 15px;
}

.category-card {
padding: 25px 15px;


background: white;
border: 1px solid #eeeeee;
border-radius: 12px;

cursor: pointer;
transition: 0.3s;


}

.category-card:hover {
transform: translateY(-5px);
border-color: #e86b35;
}

.category-card > div {
font-size: 40px;
margin-bottom: 8px;
}

.category-card h3 {
font-size: 17px;
}

.category-card p {
color: #888;
font-size: 13px;
}

/* =========================
PRODUCTS
========================= */

.products {
background: #fafafa;
max-width: none;


padding-left: max(30px, calc((100% - 1140px) / 2));
padding-right: max(30px, calc((100% - 1140px) / 2));


}

.products-heading {
display: flex;
justify-content: space-between;
align-items: end;
margin-bottom: 40px;
}

.view-all {
border: none;
background: transparent;
color: #e86b35;
font-weight: bold;
cursor: pointer;
}

.product-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
}

.product-card {
background: white;
border-radius: 12px;
overflow: hidden;
transition: 0.3s;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.product-image {
position: relative;
height: 260px;


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

background: #f3f3f3;


}

.product-emoji {
font-size: 100px;
}

.sale-label {
position: absolute;
top: 15px;
left: 15px;


padding: 5px 10px;
background: #e86b35;
color: white;

border-radius: 4px;
font-size: 11px;
font-weight: bold;


}

.heart {
position: absolute;
top: 12px;
right: 15px;


border: none;
background: white;

width: 35px;
height: 35px;
border-radius: 50%;

font-size: 20px;
cursor: pointer;


}

.product-info {
padding: 20px;
}

.product-info > p {
color: #888;
font-size: 12px;
}

.product-info h3 {
margin: 5px 0;
}

.rating {
font-size: 13px;
margin-bottom: 15px;
}

.product-bottom {
display: flex;
justify-content: space-between;
align-items: center;
}

.product-bottom strong {
font-size: 20px;
}

.product-bottom button {
padding: 8px 13px;
border: none;
background: #202020;
color: white;
border-radius: 5px;
cursor: pointer;
}

.product-bottom button:hover {
background: #e86b35;
}

/* =========================
OFFER
========================= */

.offer {
max-width: 1140px;
margin: 80px auto;

padding: 60px;

border-radius: 20px;
background: #202020;
color: white;

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

}

.offer-content > p {
color: #e86b35;
font-size: 13px;
font-weight: bold;
}

.offer h2 {
font-size: 45px;
line-height: 1.15;
margin: 10px 0;
}

.offer-content > p:last-of-type {
color: #bbb;
margin-bottom: 20px;
}

.offer a {
display: inline-block;
padding: 11px 20px;
background: #e86b35;
border-radius: 6px;
font-weight: bold;
}

.offer-visual {
font-size: 150px;
}

/* =========================
BENEFITS
========================= */

.why {
text-align: center;
}

.benefit-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.benefit {
padding: 25px;
}

.benefit > div {
font-size: 35px;
margin-bottom: 10px;
}

.benefit p {
color: #777;
font-size: 14px;
}

/* =========================
NEWSLETTER
========================= */

.newsletter {
padding: 70px max(30px, calc((100% - 1140px) / 2));

background: #f7eee9;

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


}

.newsletter h2 {
font-size: 35px;
line-height: 1.2;
margin-top: 8px;
}

.newsletter form {
width: 450px;
display: flex;
}

.newsletter input {
flex: 1;
padding: 14px;
border: 1px solid #ddd;
outline: none;
}

.newsletter button {
padding: 14px 22px;
border: none;
background: #e86b35;
color: white;
font-weight: bold;
cursor: pointer;
}

/* =========================
FOOTER
========================= */

footer {
padding: 60px max(30px, calc((100% - 1140px) / 2));


background: #202020;
color: white;


}

.footer-top {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 40px;
padding-bottom: 40px;
}

.footer-logo {
margin-bottom: 10px;
}

.footer-top p {
color: #aaa;
max-width: 300px;
}

.footer-top h4 {
margin-bottom: 15px;
}

.footer-top > div > a {
display: block;
color: #aaa;
margin: 8px 0;
}

.socials {
display: flex;
flex-direction: column;
gap: 8px;
color: #aaa;
}

.copyright {
padding-top: 25px;
border-top: 1px solid #444;
color: #888;
font-size: 13px;
}

/* =========================
CART MODAL
========================= */

.cart-modal {
display: none;


position: fixed;
inset: 0;
z-index: 2000;

background: rgba(0, 0, 0, 0.5);

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


}

.cart-modal.active {
display: flex;
}

.cart-box {
width: 90%;
max-width: 450px;
max-height: 80vh;
overflow-y: auto;

position: relative;

padding: 30px;
background: white;
border-radius: 15px;


}

.close-cart {
position: absolute;
top: 15px;
right: 20px;


border: none;
background: transparent;

font-size: 28px;
cursor: pointer;


}

.cart-box h2 {
margin-bottom: 20px;
}

.cart-item {
display: flex;
justify-content: space-between;


padding: 12px 0;
border-bottom: 1px solid #eee;


}

.cart-total {
margin-top: 20px;
padding-top: 15px;
border-top: 2px solid #222;

display: flex;
justify-content: space-between;


}

/* =========================
TABLET
========================= */

@media (max-width: 950px) {


.navbar {
    gap: 15px;
}

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

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

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

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

.newsletter {
    flex-direction: column;
    text-align: center;
}

.newsletter form {
    width: 100%;
    max-width: 500px;
}


}

/* =========================
MOBILE
========================= */

@media (max-width: 650px) {


.navbar {
    padding: 0 20px;
}

.search-box {
    display: none;
}

.menu-btn {
    display: block;
}

.mobile-menu {
    display: none;

    padding: 20px;

    flex-direction: column;
    align-items: center;
    gap: 15px;

    border-top: 1px solid #eee;
}

.mobile-menu.active {
    display: flex;
}

.hero {
    grid-template-columns: 1fr;
    padding: 55px 20px;
    text-align: center;
}

.hero-buttons {
    flex-direction: column;
}

.shop-btn,
.outline-btn {
    width: 100%;
}

.hero-product {
    min-height: 380px;
}

.product-display {
    width: 190px;
    height: 190px;
    font-size: 95px;
}

.section {
    padding: 70px 20px;
}

.section-title h2,
.products-heading h2 {
    font-size: 34px;
}

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

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

.products-heading {
    align-items: center;
}

.offer {
    margin: 50px 20px;
    padding: 40px 25px;
    flex-direction: column;
    text-align: center;
}

.offer h2 {
    font-size: 35px;
}

.offer-visual {
    font-size: 100px;
}

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

.newsletter {
    padding: 60px 20px;
}

.newsletter h2 {
    font-size: 30px;
}

.newsletter form {
    flex-direction: column;
    gap: 10px;
}

.newsletter input,
.newsletter button {
    width: 100%;
}

footer {
    padding: 50px 20px;
}

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


}

/* =========================
SMALL MOBILE
========================= */

@media (max-width: 400px) {


.logo {
    font-size: 22px;
}

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

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

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


}
