div#r_content {
  text-align: left;
  max-width: 100% !important;
  padding: 15px;
  font-family: 'Inter', sans-serif;
  color: #111;

  h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
  }

  ul {
    padding-left: 0;
    list-style: none;

    li.product-item-row {
      display: flex;
      gap: 40px;
      padding: 30px 0;
      border-bottom: 1px solid #eee;
      align-items: stretch;

      &::after {
        content: none;
      }
    }
  }

  /* 2 Column Layout */
  .col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Slider Container in Col Left */
  div.thumb {
    width: 100%;
    position: relative;
    border-radius: 0 !important;
    overflow: hidden;
  }

  /* Purchase Section in Col Left */
  .purchase-actions-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .purchase-check {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    
    input[type="checkbox"] {
      border-radius: 0 !important;
      accent-color: #000;
      margin-right: 8px;
    }
    
    .check-text a {
      color: #666;
      text-decoration: underline;
    }
  }

  .purchase-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #ok_btn, .add-to-cart-btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 400;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-transform: capitalize;
  }

  #ok_btn {
    background: #333;
    color: #fff;
  }
  #ok_btn:hover {
    background: #000;
  }
  #ok_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
  }

  .add-to-cart-btn {
    background: #f1f1f1;
    color: #666;
  }
  .add-to-cart-btn:hover {
    background: #e5e5e5;
    color: #333;
  }

  /* Right Column Styling */
  .product-info-header {
    margin-bottom: 20px;
    line-height: 2.2;
    font-size: 15px;
    
    .sang {
      display: inline-block;
      width: 100px;
      font-weight: 700;
      color: #111;
    }
    
    #purchase_price {
      font-size: 16px;
    }
  }

  .product-description-box {
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    flex-grow: 1; /* Match height */
    display: flex;
    flex-direction: column;
  }

  .product-description-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    text-align: center;
  }

  .product-description-body {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    white-space: pre-line;
    overflow-y: auto;
    padding-right: 10px;
  }

  /* Policy Buttons in Right Column Bottom */
  .accordion-wrap {
    border-top: 1px solid #eee;
  }

  .accordion-item {
    border-bottom: 1px solid #eee;
  }

  .accordion-header {
    padding: 12px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
  }

  .accordion-header:hover {
    color: #000;
  }

  .accordion-header::after {
    content: "+";
    font-size: 16px;
    color: #ccc;
  }
}

/* Sold Out Badge (Positioned over absolute container) */
.sold-out-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #000;
  color: #fff;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}



/* Modal Popup Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 0 !important;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.modal-body {
  font-size: 14px;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #999;
}

/* Responsive fixes */
@media all and (max-width: 768px) {
  div#r_content ul li.product-item-row {
    flex-direction: column;
    gap: 30px;
  }
  .col-left, .col-right {
    width: 100% !important;
  }
  .product-description-body {
    max-height: 300px !important;
  }
}

/* Custom Scrollbar */
.product-description-body::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  width: 4px;
}
.product-description-body::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: #eee;
}

/* Cart Page Specific Styles */
.cart-page-content {
    max-width: 800px !important;
    margin: 50px auto;
}

.cart-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.cart-hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.cart-list-wrap {
    margin-bottom: 30px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item-row.invalid {
    opacity: 0.6;
    background: #fcfcfc;
}

.cart-item-row.invalid .cart-item-name {
    color: #999;
}

.cart-item-row.invalid .cart-item-thumb img {
    filter: grayscale(100%);
}

.cart-item-thumb {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
}

.cart-item-option {
    font-size: 13px;
    color: #888;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.cart-item-delete {
    margin-left: 20px;
}

.delete_item_btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #000;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    font-weight: 700;
}

.delete_item_btn:hover {
    color: #000;
}

.cart-empty-message {
    padding: 50px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.cart-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 30px 0;
}

.cart-total-wrap {
    font-size: 20px;
}

.total-label {
    font-weight: 500;
    margin-right: 15px;
    color: #666;
}

.total-price-area {
    font-weight: 700;
    color: #000;
    font-family: 'Inter', sans-serif;
}

.cart-action-wrap {
    width: 100%;
    max-width: 300px;
}

.cart-checkout-btn {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    height: 54px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0 !important;
    transition: background 0.2s;
}

.cart-checkout-btn:hover {
    background: #000;
}

/* Cart Confirmation Modal */
.cart-confirm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.cart-confirm-content {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    border-radius: 0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.cart-confirm-msg {
    font-size: 15px;
    color: #111;
    margin-bottom: 25px;
    line-height: 1.5;
}
.cart-confirm-btns {
    display: flex;
    gap: 10px;
}
.cart-confirm-btn {
    flex: 1;
    height: 44px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 !important;
}
.cart-confirm-btn.yes {
    background: #000;
    color: #fff;
}
.cart-confirm-btn.no {
    background: #f1f1f1;
    color: #666;
}

@media all and (max-width: 600px) {
    .cart-page-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    .cart-item-thumb {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }
    .cart-item-name {
        font-size: 14px;
    }
    .cart-item-price {
        font-size: 14px;
    }
    .cart-footer {
        align-items: flex-start;
    }
    .cart-total-wrap {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        font-size: 18px;
    }
    .cart-action-wrap {
        max-width: 100%;
    }
}

/* Order List Styles */
.ht-table.ht-orders {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ht-table.ht-orders th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 2px solid #333;
    font-size: 14px;
    font-weight: 700;
}

.ht-table.ht-orders td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.ht-order-thumbnail {
    display: inline-block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 0 !important;
}

.ht-order-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.ht-thumb-col {
    width: 100px;
}

.ht-order-id {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.ht-order-status {
    font-size: 12px;
    padding: 4px 8px;
    background: #f1f1f1;
    color: #666;
    font-weight: 500;
}

/* Modal Cart & Continue Buttons */
.modal-footer-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-btn-cart, .modal-btn-continue {
    display: inline-block;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    min-width: 140px;
}

.modal-btn-cart {
    background: #000;
    color: #fff !important;
    border: 1px solid #000;
}
.modal-btn-cart:hover {
    background: #333;
}

.modal-btn-continue {
    background: #fff;
    color: #000 !important;
    border: 1px solid #ccc;
}
.modal-btn-continue:hover {
    background: #f9f9f9;
    border-color: #000;
}

/* Checkout Page Styles */
.checkout-container-wrap {
    padding: 60px 0;
}

.checkout-page-content {
    max-width: 900px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #111;
}

.checkout-hr {
    border: 0;
    border-top: 2px solid #000;
    margin: 20px 0 40px;
}

.checkout-hr.sub {
    border-top: 1px solid #eee;
    margin: 40px 0;
}

.checkout-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid #111;
}

.section-title.centered {
    text-align: center;
}

/* Item List */
.checkout-items-list {
}

.checkout-item-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.checkout-item-thumb {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

.checkout-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-info {
    flex-grow: 1;
}

.checkout-item-info .name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.checkout-item-info .option {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.checkout-item-info .price-qty {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Extra Info & Inputs */
.extra-info-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.info-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-label .req {
    color: #ff4757;
    margin-left: 3px;
}

.ht-input, .ht-textarea, .ht-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    border-radius: 0;
    box-sizing: border-box;
}

.ht-input:focus, .ht-textarea:focus, .ht-select:focus {
    border-color: #111;
    outline: none;
}

.ht-input.small {
    max-width: 250px;
}

.ht-textarea {
    height: 100px;
    resize: vertical;
}

/* Point Section */
.point-input-wrap .input-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.point-desc {
    font-size: 13px;
    color: #666;
}

.btn-apply-point {
    padding: 0 20px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.point-notice {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Footer & Summary */
.checkout-footer {
    background: #f9f9f9;
    padding: 40px;
    border: 1px solid #eee;
    margin-top: 40px;
}

.summary-box {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

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

.summary-row.total {
    font-size: 24px;
    font-weight: 700;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #000;
    color: #111;
}

.btn-checkout-submit {
    width: 100%;
    padding: 22px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s;
    letter-spacing: 1px;
}

.btn-checkout-submit:hover {
    background: #333;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .checkout-page-content {
        padding: 0 15px;
    }
    
    .checkout-title {
        font-size: 26px;
    }
    
    .checkout-item-row {
        align-items: flex-start;
    }
    
    .checkout-item-thumb {
        width: 70px;
        height: 70px;
    }
    
    .checkout-footer {
        padding: 25px 15px;
    }
    
    .summary-row.total {
        font-size: 20px;
    }
}

/* Payment Tile Styles */
.payment-tile-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.payment-tile-item {
    position: relative;
    user-select: none;
}

.payment-tile-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-tile-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    color: #444;
}

.payment-tile-item label:hover {
    border-color: #aaa;
    background: #fafafa;
}

.payment-tile-item input[type="radio"]:checked + label {
    border-color: #111;
    background: #fff;
    font-weight: 700;
    color: #000;
    box-shadow: inset 0 0 0 1px #111;
}

@media screen and (max-width: 480px) {
    .payment-tile-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Terms Modal Large Size */
.modal-content.large {
    max-width: 900px;
    width: 95%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 0; /* Square design per site manual */
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #eee;
}

.modal-content.large .modal-header {
    padding: 25px 30px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
}

.modal-content.large .modal-body {
    flex: 1 1 auto; /* Allow flexible growth */
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* Fix flexbox scroll issue */
}

/* Custom Scrollbar for Premium Feel */
.modal-content.large .modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-content.large .modal-body::-webkit-scrollbar-thumb {
    background: #ddd;
}
.modal-content.large .modal-body::-webkit-scrollbar-track {
    background: #f9f9f9;
}

/* Mobile Enhancement */
@media screen and (max-width: 768px) {
    .modal-content.large {
        width: 100%;
        height: 100%;
        height: 100dvh; /* Dynamic viewport height for mobile */
        max-height: 100dvh;
        border: none;
    }

    .modal-content.large .modal-header {
        padding: 20px;
        font-size: 16px;
    }

    .tos-content {
        padding: 20px 20px 100px !important;
    }
}

/* Order List Styling (Responsive Cards) */
.order-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 10px;
}

.order-card {
    border: 1px solid #eee;
    background: #fff;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap; /* For mobile */
    gap: 10px;
}

.order-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-info-left .order-date {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.order-info-left .order-id {
    font-size: 13px;
    color: #666;
}

.order-info-left .order-id strong {
    color: #333;
}

.order-info-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.btn-action:hover {
    border-color: #111;
    color: #111;
    background: #f9f9f9;
}

.order-card-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-item-row {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
}

.order-item-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.item-thumb {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.item-name,
.item-name:link,
.item-name:visited,
.item-name:active {
    font-size: 15px;
    font-weight: 700;
    color: #111 !important;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
}

.cart-item-link-black,
.cart-item-link-black:link,
.cart-item-link-black:visited,
.cart-item-link-black:active {
    color: #111 !important;
    text-decoration: none;
}

.item-name:hover,
.cart-item-link-black:hover {
    color: #111 !important;
    text-decoration: underline !important;
}

.item-opt {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.item-price {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.empty-list {
    text-align: center;
    padding: 100px 0;
    border: 1px solid #eee;
    color: #666;
    font-size: 15px;
    background: #f9f9f9;
}

/* Mobile Breakpoint for Order List */
@media screen and (max-width: 768px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-info-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .order-info-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 5px;
    }

    .order-card-body {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .order-item-row {
        gap: 15px;
        padding-bottom: 20px;
    }
    
    .item-thumb {
        width: 75px;
        height: 75px;
    }
    
    .item-name {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Payment Method Tile Group - Centered */
.payment-tile-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

.payment-tile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-tile-item input[type="radio"] {
    display: none;
}

.payment-tile-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 52px;
    border: 1.5px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.payment-tile-item input[type="radio"]:checked + label {
    border-color: #111;
    background: #111;
    color: #fff;
    font-weight: 700;
}

.payment-tile-item label:hover {
    border-color: #555;
    color: #111;
}

/* 썬데이레코즈 배송 정보 모바일 여백 및 각진 버튼 명시도 수정 */
.btn-address-book, 
#hotopay_form button {
    border-radius: 0 !important;
}

@media screen and (max-width: 768px) {
    div#r_content,
    div#r_content.checkout-page-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #hotopay_form .checkout-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

