@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300&display=swap');

:root {

    
  
    --onyx:         hsl(0, 0%, 25%);
    --azure:        hsl(219, 77%, 60%);
    --white:        hsl(0, 0%, 100%);
    --platinum:     hsl(0, 0%, 91%);
    --gainsboro:    hsl(0, 0%, 90%);
    --red-salsa:    hsl(0, 77%, 60%);
    --dim-gray:     hsl(0, 0%, 39%);
    --davys-gray:   hsl(0, 0%, 30%);
    --spanish-gray: hsl(0, 0%, 62%);
    --quick-silver: hsl(0, 0%, 64%);
  

  
    --fs-28: 28px;
    --fs-24: 24px;
    --fs-18: 18px;
    --fs-15: 15px;
    --fs-14: 14px;
  
    --fw-5: 500;
    --fw-6: 600;
    --fw-7: 700;
    --px: 60px;
    --radius: 5px;
  
  }
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body{
    font-family: 'Montserrat', sans-serif;

}
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
  }
  
  span { display: inline-block; }
  .icon{ display: inline-block; }
  
  label { display: block; margin: 14.2px 0px; }
  .img-box{
    display: block; margin: 14.2px 0px; 
  }
  
  input {
    font: inherit;
    width: 100%;
    border: none;
  }
  
  input:focus { outline: 2px solid var(#ffd24c); }
  input::-webkit-inner-spin-button,
  input::-webkit-outer-spin-button {
    appearance:         none;
    -webkit-appearance: none;
    margin: 0;
  }
 
  ::-webkit-scrollbar { width: 8px; }
  
  ::-webkit-scrollbar-track { background: transparent; }
  
  ::-webkit-scrollbar-thumb {
    background: hsl(0, 0%, 80%);
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover { background: hsl(0, 0%, 70%); }
  
  
  .container {
    max-width: 1440px;
    min-height: 100vh;
    margin: auto;
    display: flex;
    flex-direction: column;
  }
  
  .heading {
    font-size: var(--fs-28);
    font-weight: var(--fw-6);
    color: var(hsl(0, 0%, 25%));
    border-bottom: 1px solid var(--gainsboro);
    padding: 20px var(--px);
    display:     flex;
    align-items: center;
    gap: 20px;
  }
  
  .heading ion-icon { font-size: 40px; }
  
  .item-flex {
    display: flex;
    flex-grow: 1;
  }
  
  .checkout {
    width: 70%;
    padding: 40px var(--px);
    background: var(--white);
    border-right: 1px solid var(--gainsboro);
  }
  
  .section-heading {
    color:#ffd24c;
    margin-bottom: 30px;
    font-size: var(--fs-24);
    font-weight: bold;
  }
  
  .payment-form { margin-bottom: 40px;
  }
  input[type="radio"]{
    display: none;
}
.label-rad{
    width: 100%;
    position: relative;
    color: black;
    border: 1px solid hsl(0, 0%, 80%);;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 5px 0px;
   

}
.label-rad::before{
    content: "";
    height: 15px;
    width: 15px;
    border: 2px solid hsl(0, 0%, 80%);;
    border-radius: 50%;
    margin: 10px 20px;
}
input[type="radio"]:checked + .label-rad{
    background-color: #ffd24c;
    color: white;

}
input[type="radio"]:checked + .label-rad::before{
    height: 15px;
    width: 15px;
    border: 4px solid white;
    
}
  
  .label-default {
    padding-left: 10px;
    margin-bottom: 5px;
    font-size: var(--fs-14);
    color: rgb(2, 2, 2);
  }
  
  .input-default {
    background: var(--platinum);
    border-radius: var(--radius);
    color: var(--davys-gray);
    font-size: 14px; padding: 12px 15px ; border: none; margin-right: 20px;
  }

  
  .payment-form input {
    padding: 10px 15px;
    font-size: var(--fs-18);
    font-weight: var(--fw-5);
  }
  
  .name,
  .phone-number { margin-bottom: 20px; }
  
  .phone-number input,
  .cvv input { letter-spacing: 3px; }
  
  .input-flex {
    display:     flex;
    align-items: center;
    gap: 30px;
  }
  
  .input-flex .expire-date,
  .input-flex .cvv { width: 50%; }
  
  .expire-date .input-flex {
    color: var(--spanish-gray);
    gap: 13px;
  }F
  
  .expire-date .input-flex input { text-align: center; }
  
  .btn { border-radius: var(--radius); width: 100%;}
  
  .btn:active { transform: scale(0.99); }
  
  .btn:focus {
    color: white;
    background: var(#ffd24c);
    outline: 2px solid var(#ffd24c);
    outline-offset: 2px;
  }
  
  .btn-primary {
    background: #ffd24c;
    font-weight: var(--fw-5);
    color: white;
    padding: 13px 45px;
  }
  
  .btn-primary b { margin-right: 10px; }
 
  .cart {
    width: 40%;
    display:         flex;
    flex-direction:  column;
    justify-content: flex-end;
  }
  
  .cart-item-box {
    padding: 40px var(--px);
    margin-bottom: auto;
  }
  
  .product-card:not(:last-child) { margin-bottom: 20px; }
  
  .product-card .card {
    position: relative;
    display:     flex;
    align-items: flex-start;
    gap: 20px;
  }
  
  .card .product-img { border-radius: var(--radius); }
  
  .card .detail .product-name {
    font-weight: var(--fw-6);
    font-size: var(--fs-15);
    color: var(--dim-gray);
    margin-bottom: 10px;
  }
  
  .card .detail .wrapper {
    display: flex;
    gap: 20px;
  }
  
  .product-qty {
    display:     flex;
    align-items: center;
    gap: 10px;
  }
  
  .product-qty button {
    background: var(--platinum);
    width:  20px;
    height: 20px;
    display:         flex;
    justify-content: center;
    align-items:     center;
  }
  
  .product-qty button:active,
  .product-close-btn:active ion-icon { transform: scale(0.95); }

  .product-qty button ion-icon {
    --ionicon-stroke-width: 60px;
    font-size: 10px;
  }
  
  .product-close-btn {
    position: absolute;
    top:   0;
    right: 0;
  }
  
  .product-close-btn ion-icon {
    font-size: 25px;
    color: var(--quick-silver);
  }
  
  .product-close-btn:hover ion-icon { color: #ffd24c; }
  
  .discount-token {
    padding: 40px var(--px);
    border-top:    1px solid var(--gainsboro);
    border-bottom: 1px solid var(--gainsboro);
  }
  
  .wrapper-flex {
    display:     flex;
    align-items: center;
    gap: 30px;
  }
  
  .wrapper-flex input {
    padding: 12px 15px;
    font-weight: var(--fw-6);
    letter-spacing: 2px;
  }
  
  .btn-outline {
    padding: 10px 25px;
    border: 1px solid #ffd24c;
    color:#ffd24c;
  }
  
  .btn-outline:hover {
    background: #ffd24c;
    color: #fff;
  }
  
  .amount { padding: 40px var(--px); }
  
  .amount > div {
    display:         flex;
    justify-content: space-between;
  }
  
  .amount > div:not(:last-child) { margin-bottom: 10px; }
  
  .amount .total {
    font-size: var(--fs-18);
    font-weight: var(--fw-7);
    color: #ffd24c;
  }
 
  @media (max-width: 1200px) {
  
    .item-flex { flex-direction: column-reverse; }
  
    .checkout {
      width: 100%;
      border-right: none;
    }
  
    .btn-primary { width: 100%; }
    .btn-primary :hover{
        background-color: #ffd24c;
    }
    .cart {
      display: grid;
      grid-template-columns: 1fr 1fr;
      width: 100%;
      border-bottom: 1px solid var(--gainsboro);
    }
    .cart .wrapper { margin-top: auto; }
  
    .cart .cart-item-box {
      border-right: 1px solid var(--gainsboro);
      margin-bottom: 0;
    }
  
    .discount-token { border-top: none; }
  
  }
  
  
  
  
  
  @media (max-width: 768px) {
    :root { --px: 40px; }
    .cart { grid-template-columns: 1fr; }
    .discount-token { border-top: 1px solid var(--gainsboro); }
    .wrapper-flex { gap: 20px; }
  }
  
  @media (max-width: 567px) {
    :root { --px: 20px; }
    .payment-method,
    .input-flex {
      flex-direction: column;
      gap: 20px;
    }
    .payment-method .method { width: 100%; }
    .input-flex .expire-date,
    .input-flex .cvv { width: 100%; }
    .expire-date .input-flex { flex-direction: row; }
  }