/* shop items */
.item {
   background-color: #F6F6F4;
   border: 2px solid #BAB36F;
   box-shadow: 0 0 0 4px #F6F6F4, 0 8px 16px 4px rgba(0,0,0,0.2);
   box-sizing: border-box;
   display: flex;
   flex-wrap: wrap;
   align-items: flex-start;
   color: initial;
   cursor: pointer;
   margin: 8px 6px;
   padding: 10px;
   text-shadow: none;
   min-height: 90px;
}

.item:active {
   border-color: #741220;
}

.item:hover {
   background-color: #dfdfd8;
   box-shadow: 0 0 0 4px #dfdfd8, 0 8px 16px 4px rgba(0,0,0,0.2);
}

.item_thumb {
   background-color: #dbb634;
   border: 1px solid #beb777;
   border-radius: 10px;
   height: 70px;
   width: 70px;
   flex-shrink: 0;
   margin-right: 15px;
   object-fit: cover;
}

.item_title {
   font-weight: bold;
   letter-spacing: .7px;
   margin: 0;
   flex: 1;
   padding-right: 15px;
}

.item_price {
   font-family: 'Arvo', serif;
   margin-left: auto;
   margin-right: 15px;
   font-size: 1.1em;
}

.item_paypal {
   margin-top: 8px;
   width: 100%;
   text-align: right;
}

.item_paypal form {
   margin: 0;
   text-align: right;
}

.item_status {
    margin-top: 8px;
    width: 100%;
    text-align: right;
    color: #741220;
    font-weight: bold;
    font-style: italic;
}

.hidden {
    display: none;
}

/* modal styles */
.modal_overlay {
   background-color: rgba(0,0,0,0.6);
   position: fixed;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   z-index: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
}

.modal {
   background: linear-gradient(90deg, #6a101d 275px, #741220 275px);
   margin: auto;
   position: relative;
   height: auto;
   min-height: 400px;
   max-height: 90vh;
   width: 90%;
   max-width: 650px;
   border-radius: 8px;
   overflow: hidden;
}

.modal_x {
   cursor: pointer;
   font-size: 24px;
   position: absolute;
   right: 15px;
   top: 15px;
   transition: .2s;
   z-index: 1;
   color: white;
}

.modal_x:hover {
   opacity: .5;
}

.modal_img {
   position: relative;
   top: 50%;
   max-height: 400px;
   max-width: 275px;
   width:100%;
   object-fit: contain;
}

.modal_inner {
   box-sizing: border-box;
   padding: 25px;
   position: absolute;
   top: 0;
   left: 275px;
   height: 100%;
   width: calc(100% - 275px);
   overflow-y: auto;
   color: white;
}

.modal_inner form {
   position: absolute;
   bottom: 20px;
   width: calc(100% - 50px);
}

.modal_title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

.modal_price {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #dbb634;
}

.modal_desc {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    white-space: pre-line;
    max-height: calc(100% - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar styling for modal */
.modal_desc::-webkit-scrollbar {
    width: 8px;
}

.modal_desc::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.modal_desc::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.modal_desc::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}