html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
}

@media (max-width: 800px) {
  html {
    font-size: 14px;
  }
}

.clearfix {
  overflow: auto;
}

a:link, a:visited {
  color: black;
  text-decoration: none;
}

a:active { color: black; }
a:hover { color: black; }

@media (max-width: 800px) {
  a:link, a:visited {
    color: black;
  }
}

@font-face {
  font-family: 'hoefler-text-ornaments';
  src: url(../fonts/hoefler-text-ornaments.ttf);
}

@font-face {
  font-family: 'tratello';
  src: url(../fonts/tratello.ttf);
}

.special {
  font-family: 'hoefler-text-ornaments', hoefler-text-ornaments;
  font-weight: normal;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.3;
  animation: shake 10s;
  animation-iteration-count: infinite;
  width: 10%;
  display: inline-block;
  text-align: right;
}

@keyframes shake {
  0%   { transform: translate(1px, 1px) rotate(0deg); }
  10%  { transform: translate(-1px, -2px) rotate(-1deg); }
  20%  { transform: translate(-3px, 0px) rotate(1deg); }
  30%  { transform: translate(3px, 2px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(1deg); }
  50%  { transform: translate(-1px, 2px) rotate(-1deg); }
  60%  { transform: translate(-3px, 1px) rotate(0deg); }
  70%  { transform: translate(3px, 1px) rotate(-1deg); }
  80%  { transform: translate(-1px, -1px) rotate(1deg); }
  90%  { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

* {
  box-sizing: border-box;
}

body {
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  letter-spacing: 0.045rem;
  margin: 0;
  padding: 1.3rem;
  background: white;
  width: 100%;
  overflow: auto;
}

.work-container {
  padding-top: 10rem;
  width: 95%;
  margin: 0 auto;
  float: left;
  display: block;
  overflow: auto;
  vertical-align: top;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  letter-spacing: 0.045rem;
}

img {
  max-width: 100%;
  display: block;
  vertical-align: top;
  position: relative;
}

@media (max-width: 800px) {
  img {
    width: 100%;
    height: 100%;
    display: block;
  }
}

.work {
  margin: 0 auto;
  display: inline-block;
  width: 50%;
}

@media (max-width: 800px) {
  .work {
    max-width: 90%;
  }
}

figcaption {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
  width: 50%;
}

figcaption:hover {
  color: black;
}

@media (max-width: 800px) {
  figcaption {
    width: 100%;
  }
}

p {
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  letter-spacing: 0.045rem;
  margin: 0px;
}

.jos-choice {
  font-family: 'tratello', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.text-frag {
  display: inline-block;
  margin-right: 3ch;
  vertical-align: top;
  position: relative;
}

@media (max-width: 800px) {
  .text-frag {
    margin-right: 2ch;
    padding-bottom: 1ch;
  }
}

@media (max-width: 800px) {
  .info {
    padding-bottom: 2rem;
  }
}

@media (max-width: 800px) {
  .info .text-frag .dropdown {
    margin-right: 0px;
    float: left;
    display: inline-block;
    vertical-align: middle;
  }
}



button {
  background-color: transparent;
  border: none;
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'tratello', sans-serif;
  letter-spacing: 0.045rem;
  cursor: grab;
  padding: 0;
  color: black;
}

.navbar {
  display: inline-block;
  margin-right: 3ch;
  color: black;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
}

.navbar a {
  float: left;
  font-size: inherit;
  color: black;
  text-decoration: none;
}

.dropdown .dropbtn {
  cursor: pointer;
  border: none;
  color: black;
  background-color: inherit;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 1rem;
  padding-bottom: 0.5rem;
  padding-right: 12rem;
}

@media (max-width: 800px) {
  .dropdown .dropbtn {
    padding-right: 0px;
  }
}

.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
  background-color: transparent;
  text-decoration: underline;
}

.dropdown-content {
  display: none;
  position: relative;
  text-align: left;
  min-width: 160px;
  min-height: 40px;
  z-index: 1;
}

.dropbtn.show + .dropdown-content {
  display: block;
  position: absolute;
  width: 97%;
  text-align: left;
}

@media (max-width: 800px) {
  .dropbtn.show + .dropdown-content {
    display: block;
    position: relative;
    width: 100%;
    float: left;
  }
}

@media (max-width: 800px) {
  .dropdown-content {
    width: 90%;
    position: relative;
  }
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 6px 16px;
  padding-left: 0px;
  padding-top: 0px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  letter-spacing: 0.045rem;
}

@media (max-width: 800px) {
  .dropdown-content a {
    display: inline-block;
  }
}

.dropdown-content a:hover {
  text-decoration: underline;
}

.show {
  display: block;
}

.shop-nav {
  float: right;
  padding-left: 3ch;
}

@media (max-width: 800px) {
  .shop-nav {
    float: none;
    display: inline-block;
    padding: 0;
  }
}

footer {
  clear: both;
  position: relative;
  padding-top: 4rem;
  z-index: 10;
  width: 100%;
}

/* product list */

#product-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
}

.product {
  box-sizing: border-box;
  width: 33.333%;
  margin: 0;
  padding: 0 1rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product:nth-child(3n) {
  padding-right: 0;
}

.product img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.product-title {
  font-size: 16px;
  line-height: 1.3;
  font-family: 'tratello', Arial, sans-serif;
  letter-spacing: 0.045rem;
  margin-bottom: 1.5rem;
  margin-top: 0.8rem;
}

@media (max-width: 800px) {
  .product {
    width: 100%;
    max-width: 100vw;
    padding: 0 0 1rem 0;
  }

  .product img {
    width: 100%;
    height: auto;
  }
}

/* Cart */

#cart-btn {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  display: inline-block;
  float: left;
  vertical-align: top;
  position: relative;
  font-size: 1rem;
}

.cart-slideout {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: scroll;
}

@media screen and (max-width: 800px) {
  .cart-slideout {
    width: 100%;
    right: -100%;
  }
}

.cart-slideout.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.close-btn {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1999;
}

.cart-overlay.open {
  display: block;
}

.checkout-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  background: #f5f5f5;
  color: #000;
  border: 1px solid #ddd;
  font-size: 1.1rem;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  cursor: pointer;
  letter-spacing: 0.05rem;
}

.checkout-btn:hover {
  background: #ebebeb;
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
}

.cart-item img {
  width: 65px;
  height: 85px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-item-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.cart-item-price {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.9rem;
  color: #333;
}

.cart-item p {
  margin: 0.2rem 0;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
}

.cart-item-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 0.4rem;
}

.cart-item button {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
}

.remove-btn {
  background: DarkKhaki !important;
  color: #fff !important;
  border: none !important;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
}

.cart-instructions {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  resize: vertical;
}

.cart-instructions-label {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: block;
}

.cart-shipping-note {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-bottom: 0.5rem;
  max-width: 100%;
}