.item {
    position: relative;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 0px 0px 48px 0px; /* Bottom padding for button */
    height: 180px;
    width: 230px;
    margin: 10px;
    display: inline-block;
    vertical-align: top;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.18s, background 0.18s;
}
.item:hover, .item:focus-within {
    box-shadow: 0 4px 24px rgba(30,180,240,0.19);
    background: rgba(0, 152, 221, 0.11);
    z-index: 2;
}

/* Tooltip that follows the mouse */
.tooltip-follow {
    position: fixed;
    pointer-events: none;
    background: rgba(40, 40, 50, 0.98);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    min-width: 170px;
    font-size: 14px;
    z-index: 9999;
    max-width: 260px;          /* <-- add this */
    white-space: pre-line;     /* <-- and change this from 'normal' or 'nowrap' */
    word-break: break-word;    /* <-- this helps break long words/urls */
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
    display: none;
}

.product-image {
    display: table;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    text-align: center;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

.product-image .image-inner {
    display: table-cell;
    vertical-align: middle;
}

.product-image img {
    width: 80px;
    height: 80px;
    padding-top: 5px;
    max-width: 85px !important;
}

.product-name {
    font-size: 15px;
    font-weight: bold;
    padding: 5px 0 0 0;
    color: #FFF8DC;
    text-align: center;
    display: block;
}
.badge {
    display: inline-block;
    min-width: 10px;
    padding: 5px 10px;
    font-size: 17px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    white-space: wrap;
    text-align: center;
    background-color: #008cba;
    border-radius: 10px;
    margin-top: 6px;
}

/* Add button centered at bottom */
.item form {
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 100%;
    text-align: center;
}

.add-btnstore {
    background: #009c2c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.add-btnstore:hover {
    background: #23bc4d;
}

.store-alert {
    margin: 0 auto 20px auto;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.5;
    max-width: 550px;
    background: #1a1a2d;
    color: #fff6f6;
    border-left: 6px solid #ea5252;
    box-shadow: 0 2px 12px rgba(120,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-alert-danger {
    border-left-color: #ea5252;
    background: #2b1a1a;
    color: #fff0f0;
}

.store-alert .fa-exclamation-triangle {
    color: #ffb347;
    font-size: 28px;
}

.store-alert-note {
    display: block;
    margin-top: 6px;
    color: #ffe0b3;
    font-size: 15px;
}

.store-login-box {
    max-width: 340px;
    margin: 24px auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 18px rgba(20,30,100,0.14);
    padding: 28px 28px 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-login-title {
    color: #e0e6ef;
    font-family: 'Cinzel', serif;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.store-login-title .fa-user-circle {
    font-size: 26px;
    color: #0af;
}

.store-login-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 7px;
    border: 1px solid #2e4052;
    background: #23253a;
    color: #e0e6ef;
    font-size: 17px;
    font-family: inherit;
    margin-bottom: 18px;
    transition: border 0.2s;
    outline: none;
    box-sizing: border-box;
}
.store-login-input:focus {
    border: 1.5px solid #66cfff;
    background: #23253a;
}

.store-login-btn {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 7px;
    background: linear-gradient(90deg, #008cba 40%, #1fd1f9 100%);
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(20,50,100,0.09);
    transition: background 0.17s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.store-login-btn:hover {
    background: linear-gradient(90deg, #06aeca 20%, #20e3d4 100%);
    box-shadow: 0 2px 14px rgba(20,80,180,0.13);
}

#user-box .title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #37c0ff;
}

#user-box .list-group-item {
    background: rgba(0,40,60,0.10);
    border: none;
    margin-bottom: 4px;
    border-radius: 7px;
    color: #fff;
    padding: 12px 15px;
    font-size: 1.07em;
    transition: background 0.2s;
}
#user-box .list-group-item:hover {
    background: #0e4057;
}

#user-box .badge {
    background: #2ecc71;
    font-size: 15px;
    border-radius: 8px;
    padding: 2px 9px;
}

#user-box .news_post {
    margin-bottom: 7px;
}

#user-box .line-separator {
    border: none;
    height: 1px;
    background: #22638c;
    margin: 14px 0;
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(23,40,60,0.17);
    border-radius: 7px;
    margin-bottom: 7px;
    padding: 12px 16px;
    box-shadow: 0 1px 5px rgba(0,50,100,0.04);
    position: relative;
    transition: background 0.18s;
    font-size: 16px;
}
.cart-item:hover {
    background: #13487c;
}
.cart-icon {
    margin-right: 13px;
    color: #1fd1f9;
    font-size: 23px;
}
.cart-details {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.cart-name {
    font-weight: bold;
    color: #f6faff;
    letter-spacing: 0.02em;
}
.cart-qty {
    font-size: 13px;
    color: #9cd6ef;
}
.cart-price {
    font-size: 17px;
    font-weight: bold;
    color: #42f57b;
    display: flex;
    align-items: center;
    gap: 2px;
}
.cart-empty {
    color: #b7c8db;
    background: #212d3a;
}
.cart-item .fa-box, .cart-empty .fa-shopping-basket {
    font-size: 20px;
    opacity: 0.7;
}
.cart-item .fa-dollar-sign {
    color: #0ec254;
    margin-right: 3px;
}

.cart-total-badge {
    background: linear-gradient(90deg, #008cba 50%, #1fd1f9 100%);
    font-size: 1.16em;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin: 14px 5px;
    display: block;
    box-shadow: 0 1px 6px rgba(20,90,200,0.13);
}
.cart-total-badge .fa-coins {
    color: #ffe171;
    margin-right: 6px;
}

.cart-username-box {
    background: linear-gradient(90deg, #23253a 70%, #008cba 120%);
    border-radius: 9px;
    padding: 13px 18px;
    margin-bottom: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,60,180,0.08);
    gap: 6px;
}
.cart-username-label {
    color: #f6faff;
    font-size: 1.08em;
    letter-spacing: 0.04em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-username-label .fa-user-circle {
    font-size: 24px;
    color: #39c9ff;
    margin-right: 5px;
}
.cart-change-link {
    color: #ffd16c;
    font-size: 0.99em;
    margin-top: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.82;
    transition: color 0.14s, opacity 0.13s;
}
.cart-change-link:hover {
    color: #fff2a6;
    opacity: 1;
    text-decoration: underline;
}
.cart-change-link .fa-pencil-alt {
    font-size: 14px;
    margin-right: 2px;
}


.cart-username-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #23253a 70%, #008cba 130%);
    border-radius: 9px;
    padding: 13px 18px;
    margin-bottom: 18px;
    font-size: 1.06em;
    box-shadow: 0 2px 10px rgba(0,60,180,0.08);
    gap: 16px;
}

.cart-username-label {
    color: #f6faff;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-username-label .fa-user-circle {
    font-size: 24px;
    color: #39c9ff;
}
.cart-change-link {
    background: #ffd16c;
    color: #423c10;
    font-size: 0.96em;
    border-radius: 6px;
    padding: 5px 13px 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 7px rgba(80,40,0,0.07);
    transition: background 0.15s, color 0.15s;
    border: none;
    cursor: pointer;
}
.cart-change-link:hover {
    background: #ffe5b6;
    color: #835900;
    text-decoration: underline;
}
.cart-change-link .fa-pencil-alt {
    font-size: 14px;
}

.cart-empty-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.cart-empty-btn {
    background: linear-gradient(90deg,#ea5252 70%,#ffab9d 140%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-weight: bold;
    font-size: 1.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.13s, box-shadow 0.11s, color 0.12s;
    box-shadow: 0 1px 7px rgba(220,60,0,0.06);
    text-decoration: none;
}
.cart-empty-btn .fa-trash {
    font-size: 17px;
}
.cart-empty-btn:hover, .cart-empty-btn:focus {
    background: linear-gradient(90deg,#c40000 70%,#fa8b6a 140%);
    color: #fff6f6;
    text-decoration: underline;
}

.cart-paypal-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    margin-top: 14px;
}

.paypal-btn {
    background: linear-gradient(90deg,#0070ba 70%,#003087 140%);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 24px;
    font-size: 1.09em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 1px 7px rgba(0,60,180,0.09);
    transition: background 0.14s, box-shadow 0.13s;
    letter-spacing: 0.01em;
}
.paypal-btn span {
    color: #ffe871;
    font-weight: 600;
}
.paypal-btn .fa-paypal, .paypal-btn .fab.fa-paypal {
    font-size: 1.36em;
    color: #ffe871;
}
.paypal-btn:hover, .paypal-btn:focus {
    background: linear-gradient(90deg,#15459e 70%,#0070ba 140%);
    box-shadow: 0 3px 16px rgba(0,110,200,0.18);
}

.cart-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px 0;
    width: 100%;
}

.cart-total-badge {
    background: linear-gradient(90deg, #008cba 50%, #1fd1f9 100%);
    font-size: 1.16em;
    font-weight: bold;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 6px rgba(20,90,200,0.13);
    padding: 8px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-total-badge .fa-coins {
    color: #ffe171;
    margin-right: 4px;
}

.cart-empty-btn {
    background: linear-gradient(90deg,#ea5252 70%,#ffab9d 140%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 19px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: background 0.13s, box-shadow 0.11s, color 0.12s;
    box-shadow: 0 1px 7px rgba(220,60,0,0.06);
}
.cart-empty-btn .fa-trash {
    font-size: 17px;
}
.cart-empty-btn:hover, .cart-empty-btn:focus {
    background: linear-gradient(90deg,#c40000 70%,#fa8b6a 140%);
    color: #fff6f6;
    text-decoration: underline;
}