*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{ scroll-behavior: smooth;}

body{
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  background: #ddd;
}

button,select,input{
  font: inherit;
}

button{
  border: 0;
  background: none;
  cursor: pointer;
}

a{
  color: inherit;
  text-decoration: none;
}

/* Header*/
.header{
  width: 100%;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.top-bar{
  height: 75px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
}

.logo{
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
}

.main-nav{
  display: flex;
  gap: 30px;
}
.main-nav a{
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.main-nav a:hover {
    text-decoration: underline;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-icons button {
    font-size: 22px;
    position: relative;
}

#bagCount {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #111;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*MOBILE nav and menu*/
.mobile-nav {
    display: none;
}
.mobile-menu {
    display: none;
}


/*product*/
.product {
      max-width: 1250px;
      margin: 70px auto;
      padding: 0 30px;
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 85px;
      align-items: center;
    }

/*Product image*/
.image-wrapper {
      position: relative;
      background: #f4e4e2;
      border-radius: 6px;
      overflow: hidden;
      aspect-ratio: 1 / 1;
      display: flex;
      align-items: center;
      justify-content: center;
}

.image-wrapper::before {
    content: "";
    position: absolute;
    width: 65%;
    height: 65%;
    border-radius: 50%;
    background: #f8eeec;
    top: 17%;
    left: 17%;
}
.main-image {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .main-image {
    transform: scale(1.04);
}

/*Product information*/
.content {
    color: #b98282;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 500;
    line-height: 0.95;
    color: #3d2d2d;
    margin-bottom: 18px;
}

.subtitle {
    color: #8c7777;
    font-size: 14px;
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 25px;
}

.rating {
    color: #b98282;
    font-size: 14px;
    margin-bottom: 24px;
}

.rating span {
    color: #887474;
    font-size: 11px;
    margin-left: 8px;
}

.price {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    color: #3d3030;
    margin-bottom: 30px;
}



/*Divider*/

.divider {
    height: 1px;
    background: #eadbd8;
    margin: 25px 0;
}


/*Options class*/
.option {
    margin-bottom: 24px;
}

.option-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #665252;
    margin-bottom: 12px;
}

.colors {
    display: flex;
    gap: 12px;
}

.color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #fff;
    outline: 1px solid #d7c5c1;
    cursor: pointer;
    transition: 0.2s;
}

/*Quantity of the product*/
.quantity {
    display: flex;
    align-items: center;
}

.quantity button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddccca;
    background: #fff;
    cursor: pointer;
    color: #594747;
    font-size: 17px;
}

.quantity span {
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ddccca;
    border-bottom: 1px solid #ddccca;
    background: #fffaf9;
    font-size: 13px;
}


/*Cart*/
.add-cart {
    width: 100%;
    border: none;
    padding: 18px;
    background: #b98282;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.add-cart:hover {
    background: #966666;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 91, 91, 0.15);
}


/* Personality*/

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 25px;
}

.benefit {
    text-align: center;
    padding: 14px 5px;
    border: 1px solid #eadbd8;
    background: rgba(255,255,255,0.5);
}

.benefit-icon {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.benefit-title {
    display: block;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #614f4f;
}


/* Details */

.details {
    max-width: 1250px;
    margin: 100px auto;
    padding: 0 30px;
}

.details-heading {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-card {
    background: #f5e8e6;
    padding: 35px;
    text-align: center;
}

.detail-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 10px;
}

.detail-card p {
    color: #806e6e;
    font-size: 12px;
    line-height: 1.8;
}

/* Mobile users */
@media (max-width: 850px) {

    /* Header */
    .top-bar {
        padding: 0 15px;
        height: 70px;
        grid-template-columns: 1fr auto;
    }

    .logo {
        font-size: 20px;
        letter-spacing: 2px;
    }

    /* Hide desktop navigation */
    .main-nav {
        display: none;
    }

    /* Make icons fit better */
    .header-icons {
        gap: 12px;
    }

    .header-icons button {
        font-size: 18px;
    }

    /* Product section */
    .product {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 35px;
        padding: 0 15px;
    }

    /* Product title */
    h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .subtitle {
        max-width: 100%;
    }

    .price {
        font-size: 28px;
    }

    /* Product image */
    .main-image {
        width: 90%;
        height: 90%;
    }

    /* Benefits */
    .benefits {
        grid-template-columns: 1fr;
    }

    .benefit {
        width: 100%;
    }

    /* Product detail cards */
    .details {
        margin: 60px auto;
        padding: 0 15px;
    }

    .details-heading {
        font-size: 32px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    footer {
        padding: 60px 40px 25px;
    }
}
/* Footer */
footer {
    margin-top: 80px;
    background: #f5f5f5;
    padding: 60px 40px 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid h3 {
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.footer-grid h4 {
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-grid p {
    font-size: 13px;
    color: #666;
}

.footer-grid a {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
    color: #555;
    text-decoration: none;
}

.footer-grid a:hover {
    color: #000;
    text-decoration: underline;
}

.copyright {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #888;
    font-size: 11px;
}






/* Footer style*/

footer {
background: #f5f5f5;
padding: 70px 40px 25px;
}

.footer-grid {
width: min(1200px, 100%);
margin: 0 auto;

display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr;
gap: 50px;
}

.footer-grid h3 {
font-family: "Times New Roman", Times, serif;
font-size: 24px;
letter-spacing: 4px;
margin-bottom: 15px;
}

.footer-grid h4 {
font-size: 12px;
margin-bottom: 20px;
letter-spacing: 1px;
}

.footer-grid p {
max-width: 350px;
font-size: 13px;
line-height: 1.7;
color: #666;
}

.footer-grid a {
display: block;
width: fit-content;
font-size: 13px;
margin-bottom: 12px;
color: #555;
transition: color 0.2s ease;
}

.footer-grid a:hover {
color: #000;
text-decoration: underline;
}

.copyright {
width: min(1200px, 100%);
margin: 60px auto 0;
padding-top: 20px;
border-top: 1px solid #ddd;

color: #888;
font-size: 11px;
}

/* For mobile and tablet */

@media (max-width: 900px) {

.top-bar {
padding: 0 25px;
}

.main-nav {
gap: 18px;
}

.wrapper {
grid-template-columns: 1fr;
gap: 50px;
}

.content {
text-align: center;
}

.content p {
max-width: 700px;
margin-left: auto;
margin-right: auto;
}

.images img {
max-width: 600px;
}

.footer-grid {
grid-template-columns: 1fr 1fr;
gap: 40px;
}
}

@media (max-width: 650px) {

.top-bar {
min-height: 65px;
padding: 0 20px;
}

.logo {
font-size: 22px;
}

.main-nav {
display: none;
}

.header-icons {
gap: 12px;
}

.header-icons button {
font-size: 19px;
}

.mobile-nav {
display: block;
}

.mobile-menu {
display: none;
}

/* Footer */

footer {
padding: 50px 25px 20px;
}

.footer-grid {
grid-template-columns: 1fr;
gap: 35px;
}

.copyright {
margin-top: 40px;
}
}
