/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fafafa;
  color: #111;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.logo {
  height: 180px;
}

.dropdown {
  position: absolute;
  right: 40px;
  cursor: pointer;
  font-weight: 500;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content p {
  margin: 5px 0;
  cursor: pointer;
}

/* CART */
.cart-icon {
  position: absolute;
  right: 160px;
  font-size: 22px;
  text-decoration: none;
  color: black;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: black;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* HERO */
.hero {
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero-subtext {
  margin-top: 15px;
  color: rgba(255,255,255,0.85);
}

/* BUTTONS */
button {
  padding: 12px 25px;
  border: 1px solid black;
  background: black;
  color: white;
  cursor: pointer;
  transition: .3s;
}

button:hover {
  background: white;
  color: black;
}

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 35px;
  padding: 60px 80px;
}

/* CARD */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 3px 15px rgba(0,0,0,.08);
}

.card:hover {
  transform: translateY(-8px);
}

/* IMAGE HOVER */
.image-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: .5s;
}

.front {
  opacity: 1;
}

.back {
  opacity: 0;
}

.card:hover .front {
  opacity: 0;
}

.card:hover .back {
  opacity: 1;
}

.card:hover .front,
.card:hover .back {
  transform: scale(1.05);
}

.card h3 {
  padding: 15px 15px 5px;
  font-size: 16px;
}

.card p {
  padding: 0 15px 15px;
  color: #777;
}

/* PRODUCT PAGE */
.product-page {
  max-width: 1200px;
  margin: auto;
  padding: 60px;
  display: flex;
  gap: 60px;
}

.product-gallery {
  flex: 1;
}

.product-details {
  flex: 1;
}

#main-image {
  width: 100%;
  max-width: 550px;
  border-radius: 12px;
}

#thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumb {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.size-options {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.size-btn {
  padding: 10px 20px;
  border: 1px solid black;
  background: white;
  color: black;
}

.size-btn.active-size {
  background: black;
  color: white;
}

.product-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* CART */
.cart-title {
  text-align: center;
  margin: 40px 0 20px;
}

.cart-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.cart-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-info {
  flex: 1;
}

.remove-btn {
  background: black;
  color: white;
}

.cart-total {
  text-align: center;
  margin-top: 20px;
  font-size: 24px;
}

.checkout-box {
  text-align: center;
  margin: 30px 0;
}

.empty {
  text-align: center;
  color: gray;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px;
  margin-top: 60px;
  background: #f5f5f5;
  color: #777;
}

/* MOBILE */
@media (max-width: 768px) {

  .products {
    grid-template-columns: repeat(2,1fr);
    padding: 25px;
  }

  .product-page {
    flex-direction: column;
    padding: 25px;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .dropdown {
    right: 10px;
  }
}
.qty-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.qty-box button {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

#qty {
  font-size: 22px;
  font-weight: bold;
}
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #111;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ===========================
   CHECKOUT
=========================== */

.checkout-page{
    max-width:1200px;
    margin:60px auto;
    padding:0 30px;

    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:40px;
}

.checkout-form,
.order-summary{
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.checkout-form h2,
.order-summary h2{
    margin-bottom:25px;
}

.checkout-form input,
.checkout-form textarea{
    width:100%;
    padding:14px;
    margin-bottom:18px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;
}

.checkout-form textarea{
    height:120px;
    resize:none;
}

.checkout-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

.checkout-total{
    margin-top:25px;
    font-size:24px;
    font-weight:bold;
}

.order-summary button{
    width:100%;
    margin-top:25px;
}

@media(max-width:900px){

.checkout-page{

grid-template-columns:1fr;

}

}
/* =========================================
   LOARE PAYMENT PAGE
========================================= */

.payment-page {
    background: #f6f6f6;
    min-height: 100vh;
}


/* NAVBAR */

.payment-nav {
    height: 90px;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border-bottom: 1px solid #eee;
}

.payment-logo {
    height: 65px;
    width: auto;
}

.payment-cart {
    position: absolute;
    right: 45px;

    color: #111;
    text-decoration: none;

    font-size: 22px;
}

.payment-cart span {
    position: absolute;

    top: -8px;
    right: -12px;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #111;
    color: #fff;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 600;
}


/* MAIN */

.payment-wrapper {
    width: 100%;
    max-width: 1200px;

    margin: 60px auto;

    padding: 0 30px;
}


/* PAYMENT CARD */

.payment-card {
    background: #fff;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    min-height: 650px;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08);
}


/* IMAGE */

.payment-image {
    position: relative;

    min-height: 650px;

    background: #111;

    overflow: hidden;
}

.payment-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    position: absolute;
    inset: 0;

    transition: transform 0.5s ease;
}

.payment-card:hover .payment-image img {
    transform: scale(1.03);
}

.payment-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.05)
        );
}

.payment-image-overlay {
    position: absolute;

    left: 40px;
    right: 40px;
    bottom: 40px;

    z-index: 2;

    color: white;
}

.payment-image-overlay span {
    font-size: 13px;

    letter-spacing: 4px;

    font-weight: 500;
}

.payment-image-overlay p {
    margin-top: 10px;

    font-size: 14px;

    opacity: 0.85;
}


/* CONTENT */

.payment-content {
    padding: 55px 50px;

    display: flex;
    flex-direction: column;

    justify-content: center;
}


/* HEADING */

.payment-heading {
    margin-bottom: 35px;
}

.payment-step {
    font-size: 11px;

    letter-spacing: 2px;

    color: #777;

    font-weight: 600;
}

.payment-heading h1 {
    margin-top: 10px;

    font-size: 34px;

    line-height: 1.15;

    font-weight: 600;

    color: #111;
}

.payment-heading p {
    margin-top: 12px;

    color: #777;

    font-size: 14px;

    line-height: 1.7;
}


/* DETAILS */

.payment-details {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    margin-bottom: 30px;
}

.payment-detail {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #eee;
}

.payment-detail:last-child {
    border-bottom: none;
}

.payment-detail span {
    font-size: 13px;

    color: #777;
}

.payment-detail strong {
    font-size: 14px;

    color: #111;

    text-align: right;
}

.payment-detail strong.merchant-code {
    letter-spacing: 1px;
}

.payment-detail strong#payment-amount {
    font-size: 20px;
}


/* ORDER NUMBER */

.order-number strong {
    max-width: 230px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 12px;
}


/* INSTRUCTIONS */

.payment-instructions {
    display: flex;

    gap: 15px;

    margin-bottom: 20px;
}

.instruction-number {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border: 1px solid #ddd;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;

    font-weight: 600;

    color: #555;
}

.payment-instructions strong {
    display: block;

    font-size: 13px;

    margin-bottom: 4px;
}

.payment-instructions p {
    margin: 0;

    color: #777;

    font-size: 12px;

    line-height: 1.6;
}


/* TRANSACTION */

.transaction-section {
    margin-top: 15px;
}

.transaction-section label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;

    font-weight: 500;

    color: #222;
}

.transaction-section input {
    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #ddd;

    border-radius: 8px;

    background: #fafafa;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    outline: none;

    transition: border 0.2s ease;
}

.transaction-section input:focus {
    border-color: #111;

    background: #fff;
}

.transaction-section input::placeholder {
    color: #aaa;
}


/* BUTTON */

.transaction-section button {
    width: 100%;

    height: 52px;

    margin-top: 12px;

    border: 1px solid #111;

    border-radius: 8px;

    background: #111;

    color: #fff;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.25s ease;
}

.transaction-section button:hover {
    background: #fff;

    color: #111;
}


/* NOTE */

.payment-note {
    margin-top: 18px;

    text-align: center;

    font-size: 11px;

    color: #999;

    line-height: 1.6;
}


/* FOOTER */

.payment-footer {
    padding: 25px 30px 40px;

    display: flex;

    justify-content: center;

    gap: 20px;

    color: #999;

    font-size: 11px;

    text-align: center;
}

.payment-footer span {
    color: #bbb;
}


/* =========================================
   MOBILE PAYMENT PAGE
========================================= */

@media (max-width: 900px) {

    .payment-wrapper {
        margin: 30px auto;

        padding: 0 18px;
    }

    .payment-card {
        grid-template-columns: 1fr;

        min-height: auto;
    }

    .payment-image {
        min-height: 360px;

        height: 360px;
    }

    .payment-content {
        padding: 40px 25px;
    }

    .payment-heading h1 {
        font-size: 28px;
    }

}


@media (max-width: 600px) {

    .payment-nav {
        height: 75px;
    }

    .payment-logo {
        height: 52px;
    }

    .payment-cart {
        right: 20px;

        font-size: 20px;
    }

    .payment-image {
        min-height: 300px;

        height: 300px;
    }

    .payment-image-overlay {
        left: 25px;
        bottom: 25px;
    }

    .payment-content {
        padding: 35px 20px;
    }

    .payment-heading h1 {
        font-size: 25px;
    }

    .payment-detail {
        align-items: flex-start;
    }

    .payment-detail strong {
        max-width: 55%;

        text-align: right;
    }

    .payment-footer {
        flex-direction: column;

        gap: 5px;
    }

}