/* =========================
   PRODUCT PAGE LAYOUT
========================= */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  margin-top: -20px;
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 20px;
  transform: translateY(-20px);
  align-items: start;
}

/* =========================
   Body
========================= */

body {
  background:
    linear-gradient(
      rgba(27,40,66,.82),
      rgba(27,40,66,.82)
    ),
    url("lake-bg.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


/* =========================
   LOGO
========================= */

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin-bottom: 10px;
}

.logo-area img {
    width: 550px;
    max-width: 90%;
}

.back-btn {
    margin-top: 10px;

    padding: 10px 22px;
    border-radius: 999px;

    background: rgba(255,255,255,.08);
    color: white;
    text-decoration: none;

    transition: .3s;
}

.back-btn:hover {
    background: #22c55e;
}

/* =========================
   PRODUCT IMAGE
========================= */

.product-gallery {
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
}

.main-image {
  width: 100%;
  max-width:450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   ORDER FORM
========================= */

.product-form {
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 25px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-form h2 {
  margin-bottom: 10px;
}

.product-gallery,
.product-form{
    backdrop-filter: blur(8px);
    background: rgba(20,30,50,.78);
    border: 1px solid rgba(255,255,255,.08);
}

/* ORDER SUMMARY */

.order-summary{
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.1);
}

.order-summary h3{
    margin-bottom:15px;
}

.order-item{
    padding:12px;
    margin-bottom:10px;

    background:rgba(255,255,255,.05);

    border-radius:12px;
}

.order-total{
    margin-top:15px;

    font-size:1.2rem;

    font-weight:700;

    color:#2dd4bf;
}


/* =========================
   BUTTON GROUPS
========================= */

.style-options,
.color-options{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.style-options button,
.color-options button{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
}

.style-options button.active,
.color-options button.active {
  background: #22c55e;
  color: white;
  box-shadow: 0 0 15px rgba(34,197,94,.45);
  transform: translateY(-2px);
}

.color-options button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.style-btn {
    padding: 12px 24px;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 999px;

    background: rgba(255,255,255,.05);
    color: #fff;

    font-size: .95rem;
    font-weight: 600;

    cursor: pointer;
    transition: all .25s ease;
}

.style-btn:hover {
    border-color: #2dd4bf;
    transform: translateY(-2px);
}

.style-btn.active {
    background: linear-gradient(135deg,#22c55e,#2dd4bf);
    border-color: transparent;
    box-shadow: 0 0 18px rgba(45,212,191,.35);
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;

    border: 2px solid rgba(255,255,255,.12);
    border-radius: 999px;

    background: rgba(255,255,255,.05);
    color: white;

    cursor: pointer;
    transition: .25s;
}

.color-btn.active {
    background: linear-gradient(135deg,#22c55e,#2dd4bf);
    color: white;
    box-shadow: 0 0 20px rgba(45,212,191,.4);
}

.color-btn,
.color-btn.active {
    border-radius: 999px !important;
}

.remove-item{
    background:#ef4444;
    color:white;

    border:none;

    padding:8px 14px;

    border-radius:999px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;
}

.remove-item:hover{
    background:#dc2626;
}

.clear-cart-btn{
    width:100%;

    margin-top:15px;

    background:#374151;
    color:white;

    border:none;

    padding:12px;

    border-radius:999px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;
}

.clear-cart-btn:hover{
    background:#1f2937;
}

.submit-order-btn{

    width:100%;

    margin-top:20px;

    padding:14px;

    border:none;
    border-radius:12px;

    cursor:pointer;

    font-size:1rem;
    font-weight:700;

    background:linear-gradient(
      135deg,
      #22c55e,
      #2dd4bf
    );

    color:#041827;

    transition:.25s;
}

.submit-order-btn:hover{

    transform:translateY(-2px);

    box-shadow:
      0 10px 25px rgba(34,197,94,.3);

}


/* COLOR DOTS */

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
}

.banana {
  background: #f4d27c;
}

.pink {
  background: #efb7c8;
}

.seafoam {
  background: #8fc4b4;
}

.iceblue {
  background: #b9dcea;
}

.white {
  background: #ffffff;
}

.color-btn:hover,
.style-btn:hover {
    transform: translateY(-2px);
    border-color: #2dd4bf;
}

.customer-heading{

    margin-top:30px;

    margin-bottom:18px;

    padding-top:20px;

    border-top:1px solid rgba(255,255,255,.12);

    color:#2dd4bf;

    font-size:1.2rem;

}

/* =========================
   INPUTS
========================= */

.product-form input,
.product-form select,
.product-form textarea{

    width:100%;

    padding:12px;

    border:none;

    border-radius:10px;

    font-size:1rem;

    resize:vertical;

}

.back-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: white;
    text-decoration: none;
    transition: .3s;
}

.back-btn:hover {
    background: #22c55e;
}

.product-price {
    color: #2dd4bf;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#addToOrder{
    transition: all .25s ease;
}

#addToOrder:hover{
    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(45,212,191,.35);

    filter: brightness(1.08);
}

#orderMessage{

    min-height:24px;

    margin-top:10px;

    color:#22c55e;

    font-weight:700;

    text-align:center;

    opacity:0;

    transition:.3s;

}

/* FLOATING CART */

.cart-float{

    position:fixed;

    bottom:25px;
    right:25px;

    width:70px;
    height:70px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:1.4rem;
    font-weight:700;

    background:linear-gradient(
      135deg,
      #22c55e,
      #2dd4bf
    );

    color:white;

    cursor:pointer;

    box-shadow:
      0 10px 25px rgba(0,0,0,.25);

    transition:.25s;

    z-index:999;
}

.cart-float:hover{

    transform:
      translateY(-3px)
      scale(1.05);

}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

/* Stack everything */
.product-layout{
    display:flex;
    flex-direction:column;
    gap:25px;
    padding:15px;
}

/* Smaller logo */
.logo-area img{
    width:220px;
}

/* Center back button */
.logo-area{
    text-align:center;
}

.remove-item{
    padding:8px 18px;
    border-radius:999px;
}

/* Product image */
.product-gallery{
    width:100%;
    padding:20px;
}

.main-image{
    width:75%;
    max-width:260px;
    margin:auto;
}

/* Form */
.product-form{
    width:100%;
    padding:20px;
}

.product-form label{
    font-weight:600;
    color:#f3f4f6;
    margin-bottom:4px;
}

/* Product title */
.product-form h2{
    text-align:center;
    font-size:2rem;
    line-height:1.3;
}

/* Price */
.product-price{
    text-align:center;
    font-size:2rem;
}

.product-price{
    margin-bottom:30px;
}

/* Style buttons */
.style-options{
    grid-template-columns:1fr;
}

/* Color buttons */
.color-options{
    grid-template-columns:1fr 1fr;
}

/* Inputs */
.product-form input,
.product-form select{
    font-size:16px;
}

/* Current Order */
.order-summary{
    margin-top:20px;
}

.order-item{
    padding:15px;
}

/* Buttons */
.submit-order-btn,
.clear-cart-btn{
    width:100%;
}



/* Floating cart */
.cart-float{
    width:60px;
    height:60px;
    right:15px;
    bottom:15px;
    font-size:1.2rem;
}

.payment-note{

    margin-top:18px;

    padding:15px;

    border-radius:12px;

    background:rgba(45,212,191,.08);

    border:1px solid rgba(45,212,191,.18);

    line-height:1.6;

    font-size:.9rem;

}

}