*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: NanumMyeongjo;

}

.page-container {
    width: 100%;
    min-height: 100vh;

}

/* header */

.header {
    width: 100%;
    height: 8vh;
    align-items: center;
    position: sticky;
    top: 0;
    padding: 0px;
    background: #eeeeee;
    opacity: 95%;
    border-bottom: 1px solid #c6c6c6;

}

.logo-head {
    position: absolute;
    left: 41%;
    display: flex;
    align-items: center;

}

.logo-head h1 {
    font-family: Kantumruy Pro;
    font-size: 25px;
    font-weight: normal;

}

.logo-head img {
    width: 8vh;
    height: 8vh;

}

/* side navigation bar */

.side-nav {
    width: 0;
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background: #c6c6c6;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;

}

.side-nav a {
    padding: 8px 8px 8px 32px;
    font-size: 25px;
    line-height: 45px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    color: black;
    
}

.side-nav a:hover {
    color: #767676;

}

.side-nav .side-cls {
    position: absolute;
    top: 0;
    right: 0;

}

.side-nav .side-cls img {
    width: 50px;

}

.side-btn {
    cursor: pointer;
    color: #6e6e6e;
    margin: 10px 0 0 20px;
    border: none;
    background: transparent;
    order: none;
    padding: 0;

}

.side-btn img {
    width: 50px;

}

/* footer */

.footer {
    width: 100%;
    margin: 30px 0;
    border-top: 1px solid #c6c6c6;

}

.foot-body {
    padding: 30px 100px;
    line-height: 30px;

}

.foot-body h4{
    font-size: 20px;
    margin-bottom: 10px;

}

.foot-body a {
    text-decoration: none;
    color: black;

}

/* home page */

.home-image img {
    width: 100%;
    height: 92vh;

}

.btm-sec {
    width: 100%;
    display: flex;
    justify-content: space-between;

}

#block1 {
    width: 45%;
    margin: 10px;
    text-align: center;

}

#block1 h2{
    margin-bottom: 10px;
    font-size: 35px;

}

#block1 img {
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    width: 500px;

}

#block2 {
    width: 50%;
    margin: 10px;
    text-align: center;

}

#block2 h2 {
    font-size: 35px;

}

#block2 img {
    width: 500px;

}

/* About Page */

.abt-body {
    left: 0%;
    align-items: center;
    margin-top: 40px;
    text-align: center;

}

.abt-body h1 {
    font-size: 50px;
    margin-bottom: 20px;

}

.abt-body p {
    font-size: 25px;
    margin-left: 15%;
    margin-right: 15%;

}

.abt-body a {
    font-size: 22px;
    margin-left: 15%;
    margin-right: 15%;

}

.abt-body img {
    margin-top: 15px;
    width: 15vh;

}

/* Products Page*/

.products {
    margin: 40px 50px;

}

.products h1 {
    text-align: center;
    font-size: 50px;
    margin-bottom: 50px;

}

.pro-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

}

.pro-1 {
    width: 23%;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid #c7c7c7;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 4px;

}

.pro-1 img {
    width: 100%;

}

.pro-1 .p-desc {
    display: flex;
    text-align: start;
    padding: 10px 10px;
    justify-content: space-between;
    align-items: center;

}

#pro-nav {
    text-align: center;

}

#pro-nav a {
    text-decoration: none;  
    padding: 10px 7px;
    color: rgb(0, 0, 0);
    font-weight: 700;

}

#pro-nav a:hover {
    border-bottom: 1px solid black;

}

@media (max-width: 900px) {
  .pro-1 {
      width: 45%;
  }
}

@media (max-width: 600px) {
  .pro-1 {
      width: 100%;
  }
}

/* Single Product Page */

#spro {
    display: flex;
    padding: 50px;

}

#spro .spro-img {
    width: 40%;
    margin-right: 50px;

}

.spro-img img {
    width: 100%;
    border: 1px solid #c7c7c7;
    border-radius: 4px;

}

.spro-img-sec {
    display: flex;
    justify-content: space-between;

}

.spro-img-sec-col {
    flex-basis: 24%;
    cursor: pointer;

}

#spro .spro-det {
    width: 50%;
    padding-top: 30px;


}

#spro .spro-det h3 {
    padding-bottom: 10px;
    font-size: 24px;
    font-weight: 100;
    margin-bottom: 5px;

}

#spro .spro-det h2 {
    padding-bottom: 10px;
    font-size: 28px;
    margin-bottom: 20px;

}

#spro .spro-det select {
    display: block;
    padding: 5px 10px;
    margin-bottom: 10px;
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    cursor: pointer;

}

#spro .spro-det input {
    width: 50px;
    height: 47px;
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;

}

#spro .spro-det button {
    background: none;
    border: 1px solid #c7c7c7;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.5s ease;
    font-weight: 600;

}

#spro .spro-det button:hover {
    background: #e7e7e7;

}

#spro .spro-det h4 {
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 18px;

}

#spro .spro-det span {
    line-height: 30px;

}

/* Profile Login Page */

.prof-body {
    left: 0%;
    align-items: center;
    margin-top: 40px;
    text-align: center;

}

.prof-body h1 {
    font-size: 40px;
    margin-bottom: 20px;

}

#prof-log {
    left: 40%;
    padding: 0 500px;
    text-align: start;
    align-items: start;

}

#prof-log h3 {
    font-size: 25px;
    margin-bottom: 20px;

}

#prof-log input {
    display: flex;
    border: none;
    border-bottom: 1px solid #c7c7c7;
    font-size: 15px;

}

#prof-log input:focus {
    outline: none;

}

#prof-log button {
    background: none;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.5s ease;
    font-weight: 600;

}

#prof-log button:hover {
    background: #e7e7e7;

}

.prof-body img {
    margin-top: 75px;
    width: 15vh;

}

/* Contact Us Page */

.cont-body {
    left: 0%;
    align-items: center;
    margin-top: 40px;
    text-align: center;

}

.cont-body h1 {
    font-size: 40px;
    margin-bottom: 20px;

}

#cont-form {
    left: 40%;
    padding: 0 30%;
    text-align: start;
    align-items: start;

}

#cont-form label {
    font-size: 20px;

}

#cont-form input {
    border: 1px solid #c7c7c7;
    border-radius: 5px;
    padding: 10px;
    width: 75%;
    font-size: 15px;

}

.cont-body #cont-rsn {
    height: 10vh;

}

#cont-form input:focus {
    outline: none;

}

.cont-inp {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;

}

.cont-body button {
    background: none;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.5s ease;
    font-weight: 600;
    margin-top: 30px;

}

.cont-body button:hover {
    background: #e7e7e7;

}

.cont-body img {
    margin-top: 75px;
    width: 15vh;

}

/* Cart button */

.cart-btn{
    position:absolute;
    right:20px; top:8px;
    background:transparent;
    border:none;
    cursor:pointer;
    padding:0;
    display:inline-flex; align-items:center; justify-content:center;
}


.cart-btn img{ 
    width:50px; 
    height:auto;
    display:block;
}

.cart-count{
  position:absolute;
  top:0px;
  right:0px;
  background:#c90e0e;
  color:#c6c6c6;
  border-radius:999px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}

.cart-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
  z-index:9998;
}


.cart-backdrop.show{
    opacity:1;
    pointer-events:auto;
}

.cart-drawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(420px,95vw);
  background:#c6c6c6;
  transform:translateX(100%);
  transition:transform .25s ease;
  z-index:9999;
  display:flex;
  flex-direction:column;
  border-left:1px solid #c6c6c6;
}

.cart-drawer.open{
    transform:translateX(0);
}

.cart-drawer .cart-header, .cart-drawer .cart-footer{
  padding:16px 18px; background:#c6c6c6; 
  border-bottom:1px solid #c90e0e;
}

.cart-drawer .cart-footer{ 
    border-bottom:none;
    border-top:1px solid #c90e0e;
}

.cart-drawer .cart-items{
    flex:1;
    overflow:auto;
    padding:16px;
}

.cart-item{
  display:grid;
  grid-template-columns:64px 1fr auto;
  gap:12px;
  align-items:center;
  border:1px  #eee;
  padding:10px;
  border-radius:12px;
  margin-bottom:12px;
}

.cart-item img{
    width:64px;
    height:64px;
    object-fit:contain;
    background:#f9f9f9;
    border-radius:8px;
}

.cart-item-title{
    font-weight:600;
    margin:.1rem 0 .25rem 0;
}

.cart-item-meta{ 
    font-size:.9rem; 
    color:#6e6e6e;
    margin-bottom:.25rem;
}

.qty{ 
    display:flex;
    align-items:center;
    gap:8px;
}

.qty input{
    width:56px;
    padding:6px;
}

.cart-total{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.cart-actions{
    display:flex;
}

.cart-checkout{
    background:#c90e0e;
    color:#fff;
    border:none;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
}

.cart-clear{
    background:#111;
    color:#fff;
    border:none;
    padding:10px 14px;
    border-radius:10px;
    margin-left:8px;
    cursor:pointer;
}

.cart-toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:88px;
  background:#111;
  color:#fff;
  padding:.6rem .9rem;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
  z-index:10000;
  opacity:0;
  transition:opacity .2s;
}

.cart-toast.show{
    opacity:1;
}

.cart-drawer .cart-header{
    position:relative;
    padding-right:40px;
}

.cart-close{
  position:absolute;
  right:12px; top:50%;
  transform:translateY(-50%);
  background:transparent;
  border:none;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  width:28px;
  height:28px;
  border-radius:6px;
}


/* ===== TFK Checkout Polished ===== */
:root{
  --brand: #d11b1b;
  --text: #111111;
  --muted: #6e6e6e;
  --bg: #f7f7f8;
  --card: #ffffff;
  --border: #e6e6e6;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
}

.checkout-page{
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}
.checkout-page h1{
    text-align:center;
    font-size: 44px;
    margin: 18px 0 28px;
}

.checkout-content{
    display:grid;
    grid-template-columns: 1.1fr .9fr;
    gap:28px;
    align-items:start;
}

@media (max-width: 1000px){ .checkout-content{ grid-template-columns: 1fr; } }

.ck-card, .form-card, .checkout-summary{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.form-card + .form-card{ margin-top: 14px; }

.form-card h3{ margin-bottom: 12px; font-size: 18px; }

.form-grid{ display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:12px;
}

.form-grid.full{
    grid-template-columns: 1fr;
}

@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

.form-grid label{
    display:flex;
    flex-direction:column;
    gap:6px; font-weight:600;
    font-size: 14px;
    color: var(--text);
}

.form-grid input, .form-grid select{
  height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff; font-size: 15px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.form-grid input:focus, .form-grid select:focus{
  outline:none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(209,27,27,.15);
}

.checkbox{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:500;
}

input[type="checkbox"], input[type="radio"]{ accent-color: var(--brand); }

.ship-methods{
    margin-top:14px;
}

.ship-methods legend{
    font-weight:800;
    margin-bottom:8px;
}

.ship-method{
    display:flex;
    justify-content:space-between;
    align-items:center; padding:12px;
    border:1px solid var(--border);
    border-radius:12px; background:#fff;
}

.ship-method + .ship-method{
    margin-top:10px;
}

.ship-method:hover{
    background:#fafafa;
}

.checkout-items{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.checkout-item{
  display:grid;
  grid-template-columns:120px 1fr 110px;
  gap:16px;
  align-items:center;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow);
}

.checkout-item img{
    width:120px;
    height:120px;
    object-fit:contain;
    border-radius:12px;
    border:1px solid var(--border);
    background:#fff;
}

.ck-title{
    font-weight:800;
    font-size:18px;
}

.ck-meta{
    color: var(--muted);
}

.ck-qty .remove{
    margin-left:8px;
    background:#c6c6c6;
    color:#fff;
    border:none;
    padding:6px 10px;
    border-radius:10px;
    cursor:pointer;
}

.ck-price{
    font-weight:800;
    font-size:18px;
    text-align:right;
}

.checkout-summary h3{
    font-size:18px;
    margin-bottom:10px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin:8px 0;
    font-size:15px;
}

.summary-row.total{
    font-weight:900;
}

.summary-sep{
    border:none;
    border-top:1px solid var(--border);
    margin:10px 0;
}

.summary-note{
    font-size:12px;
    color: var(--muted);
    margin-top:8px;
}

.checkout-summary .checkout-continue{
    width:100%;
    margin-top:12px;
}

.form-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px; margin-top:16px;
}

.btn{
    display:inline-block;
    padding:12px 16px;
    border-radius:12px;
    border:1px solid #111;
    text-decoration:none;
    font-weight:700;
    cursor:pointer;
}

.btn-primary{
    background: var(--brand);
    color:#fff;
    border-color: var(--brand);
}

.btn-primary:hover{
    filter: brightness(.95);
}

.btn-secondary{
    background:#fff;
    color:#111;
    border-color: var(--border);
}

.btn-secondary:hover{
    background:#f3f3f3;
}

.checkout-summary{
    position: sticky;
    top: 90px;
}

@media (max-width: 900px){
  .checkout-item{ grid-template-columns: 90px 1fr 80px; }
}

/* Header */
.logo-head {
    left: 50%;
    transform: translateX(-50%);
}

.logo-head h1 {
    font-size: 18px;
}

.logo-head img {
    width: 6vh;
    height: 6vh;
}

.side-btn img {
    width: 36px;
}

.cart-btn img {
    width: 36px;
}

/* Home Page */
@media (max-width: 900px) {
    .btm-sec {
        flex-direction: column;
        align-items: center;
    }

    #block1,
    #block2 {
        width: 90%;
    }

    #block1 img,
    #block2 img {
        width: 100%;
        height: auto;
    }
}

/* Prof/About/Cont */
@media (max-width: 700px) {

    .abt-body p,
    .abt-body a {
        margin-left: 5%;
        margin-right: 5%;
        font-size: 18px;
    }

    #prof-log,
    #cont-form {
        padding: 0 5%;
    }

    #prof-log h3,
    .cont-body h1 {
        font-size: 26px;
    }
}


/* Allow auto-wrapping, equal spacing, and fluid cards */
.pro-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.pro-1 {
    flex: 1 1 calc(33.333% - 20px);  /* 3 per row */
    max-width: calc(33.333% - 20px);
}

@media (max-width: 900px) {
    .pro-1 {
        flex: 1 1 calc(45% - 20px);
        max-width: calc(45% - 20px);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .pro-1 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Single Product Page */
@media (max-width: 900px) {
    #spro {
        flex-direction: column;
        padding: 20px;
    }

    #spro .spro-img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    #spro .spro-det {
        width: 100%;
    }

    .spro-img-sec {
        gap: 8px;
    }
}

/* Checkout */
@media (max-width: 600px) {

    .cart-item {
        grid-template-columns: 48px 1fr auto;
    }

    .cart-item img {
        width: 48px;
        height: 48px;
    }

    .checkout-item {
        grid-template-columns: 70px 1fr 60px;
    }

    .checkout-item img {
        width: 70px;
        height: 70px;
    }
}
