/* ================= VARIABLES ================= */
:root {
  --charcoal: #353333;
  --charcoal2: #0b0b0b;
  --pink: #f5b7d2;
  --brown: rgb(187, 125, 66);
  --white: #fffdd0;
  --black: #000000;
  --blush: #F8C8DC;
  --rose: #E75480;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  font-family: 'allura';
  background: var(--black);
  width: 100%;
  cursor: pointer;
  scroll-behavior:smooth;
  overflow-x:hidden;
  color: var(--white);
}

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

/* ================= BUTTON ================= */
button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  background: var(--pink);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  color: var(--white);
}

button:hover {
  background: var(--pink);
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  padding: 15px 15px;
  border-bottom: 1px solid #222;
  background: var(--black);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
}

.back{
  display:flex;
  gap:8px;
  padding:10px 15px;
  border-radius:20px;
  background:var(--black);
  text-decoration:none;
  color:var(--pink);
  transition:.3s;
  height: 40px;
  width: 170px;
}
.back:hover{
  text-decoration: underline;
  color: var(--pink);
}

.back i,
.back p {
  color: var(--pink);
}
/*brand*/
h1.brand{
  font-family:'Allura';
  font-size:40px;
  color:var(--white);
  text-align:center;
  cursor:pointer;
  justify-self:center;
}

h1.brand span {
  font-size: 40px;
  font-family: 'Allura';
  text-align: center;
  color: var(--pink);
}
/* ================= NAV ================= */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.nav-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
}


.search-bar, .cart, .heart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px var(--pink);
  border-radius: 25px;
  width: auto;
  margin: 0;
  background-color: var(--black);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.search-bar:hover,
.cart:hover,
.heart:hover {
  box-shadow: 0 0 10px var(--white);
}

.search-bar i, .heart i, .cart i{
  font-size: 19px;
  cursor: pointer;
  margin: 0;
  color: var(--pink);
  align-items: center;
}

.cart{
  position:relative;
}

#cart-count{
  position:absolute;
  top:-8px;
  right:-10px;
  width:20px;
  height:20px;
  background:var(--brown);
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center; 
  justify-content:center;
  font-size:12px;
  font-weight:bold;

}
/* ================= LAYOUT ================= */
.checkout-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  min-height: 100vh;
  padding: 85px 30px 20px;
}

.form-section {
  flex: 2;
}

.ads-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================= FORM ================= */
.container {
  max-width: 750px;
  padding: 10px;
  margin: 0 auto;
  background: var(--charcoal2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

h3 {
  text-align: center;
  font-family: 'Allura';
  font-size: 32px;
  color: var(--pink);
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--white);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  color: white;
  background: var(--black);
}

textarea {
  resize: vertical;
}

.note {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}
/*=======CART ITEM=============*/
.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  margin-bottom:5px;
  background:#111;
  border: 1px solid var(--charcoal2);
}

.cart-item button{
  background:var(--brown);
  width: 80px;
  color:var(--black);
  border:none;
  padding:8px 7px;

  cursor:pointer;
}
/* ================= CHECKBOXES ================= */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--brown);
  font-size: 14px;
  cursor: pointer;
  color: var(--white);
}

.checkbox-group input {
  width: auto;
  margin: 0;
}

/* ================= ADS ================= */
.ad-box {
  padding: 18px;
  text-align: center;
  background: var(--white);
  transition: 0.3s ease;
  width: 500px;
}

.ad-box:hover {
  transform: scale(1.02);
  cursor: pointer;
}

.ad-box p {
  margin-top: 10px;
  padding: 15px;
  font-size: 15px;
  color: var(--charcoal2);
}

.ad-box video {
  width: 100%;
  height: 181px;
  object-fit: cover;
}
/* =========================================
   MOBILE CART PAGE
========================================= */

@media screen and (max-width:768px){

/* HEADER */

.site-header{

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

padding:12px 15px;

}

.back{

width:auto;
padding:8px 12px;

}

.back p{

display:none;

}

h1.brand{

font-size:28px;

}

h1.brand span{

font-size:28px;

}

.nav-icons{

gap:8px;

}

.search-bar,
.heart,
.cart{

padding:8px;

}

.search-bar i,
.heart i,
.cart i{

font-size:17px;

}

/* PAGE */

.checkout-layout{

display:flex;
flex-direction:column;

padding:90px 15px 30px;

gap:30px;

}

/* FORM */

.form-section{

width:100%;

}

.container{

width:100%;

padding:20px;

}

.container h3{

font-size:30px;

margin-bottom:20px;

}

input,
textarea,
select{

font-size:16px;

padding:14px;

}

button{

padding:16px;

font-size:17px;

}

/* CART ITEMS */

.cart-item{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

.cart-item button{

width:100%;

}

/* ADS */

.ads-section{

width:100%;

display:flex;

overflow-x:auto;

justify-content:center;

align-items:center;

gap:20px;

padding:10px 5% 10px;

scroll-snap-type:x mandatory;

scroll-padding:5%;

}

.ads-section::-webkit-scrollbar{

display:none;

}

.ad-box{

min-width:90%;

width:90%;

flex-shrink:0;

scroll-snap-align:center;

padding:20px;

margin:0 auto;

}

.ad-box video{

width:100%;

height:180px;

object-fit:cover;

}

.ad-box p{

font-size:18px;

padding:18px;

}

/* CHECKBOXES */

.checkbox-group{

flex-direction:column;

}

.checkbox-group label{

width:100%;

justify-content:flex-start;

}

}

/* =========================================
   SMALL PHONES
========================================= */

@media screen and (max-width:420px){

h1.brand{

font-size:22px;

}

h1.brand span{

font-size:22px;

}

.container{

padding:18px;

}

.container h3{

font-size:26px;

}

label{

font-size:15px;

}

.note{

font-size:14px;

}

.ad-box{

min-width:90%;

width:90%;

margin:0 auto;

}

.ad-box video{

height:220px;

}

}