
.stock-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,250,255,0.9));
    margin-top: 35px;
    padding-bottom: 5%;
}

.stock-main {
    padding-bottom: 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;

}
h1 {
    padding: 0;
    margin: 0;
}

.stock-title {
    font-size: 40px;     
    font-weight: 700;
    color: #002f7a;
    margin-bottom: 0px;
}

.stock-description {
    width: 95%;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
}






/* ===============================
   WRAPPER
================================ */
.stock-wrap-tools {
    display: grid;
    width: 90%;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5%;
    row-gap: 30px;
}

/* ===============================
   STOCK BOX (CARD)
================================ */
.both-stock-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 250px;
    background:
        linear-gradient(180deg, #002f7a 0%, #09132b 100%);
    border-radius: 12px;
    border: 1px solid rgba(120,170,255,0.22);

    box-shadow:
        0 10px 28px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.08);

    position: relative;
    overflow: hidden;
}

/* Soft ambient glow */
.both-stock-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        90% 60% at 50% 0%,
        rgba(120,170,255,0.18),
        transparent 70%
    );
    pointer-events: none;
}

/* ===============================
   TITLE BAR
================================ */
.both-stock-title-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    font-weight: 500;

    background:
        linear-gradient(135deg, #5fa8ff 0%, #2f63ff 100%);
    color: #ffffff;

    font-family: 'Fredoka', Arial, sans-serif;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.6),
        0 0 12px rgba(0, 0, 0, 0.9);

    padding-top: 5px;
    padding-bottom: 5px;

    border-bottom: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 4px 12px rgba(0,0,0,0.45);
}
.normal-stock-title-box {
        background:
        linear-gradient(135deg, #0000d5 0%, #005a7e 100%);
}
.mirage-stock-title-box {
        background:
        linear-gradient(135deg, #ff9d00 0%, #645c00 100%);
}
/* ===============================
   REFRESH AREA
================================ */
.both-stock-refresh {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding-top: 5px;
    column-gap: 5px;
    font-size: 14px;

    color: rgba(255, 255, 255, 0.95);
}

.both-stock-refresh-date-box {
    background: rgba(6,14,32,0.6);
    border-radius: 6px;
    border: 1px solid rgba(140,190,255,0.4);
    padding: 2px 3px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 12px rgba(110,170,255,0.35);
        font-size: 12px;
}

.both-stock-refresh-date {
    color: #f0f8ff;
    font-weight: 500;
}

/* ===============================
   FRUIT GRID
================================ */
.both-stock-fruit-grid-box {
    display: grid;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 90%;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    border-radius: 8px;
}

/* ===============================
   FRUIT CARD
================================ */
.both-stock-fruit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;

    background:
        linear-gradient(180deg, #32456f 0%, #1f2b48 100%);
    border-radius: 8px;
    padding: 6px;

    border: 1px solid rgba(120,170,255,0.28);

    box-shadow:
        0 5px 14px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.1);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.both-stock-fruit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 9px 22px rgba(0,0,0,0.65),
        0 0 16px rgba(130,190,255,0.45),
        inset 0 1px 0 rgba(255,255,255,0.18);
}
.both-stock-fruit-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
.both-stock-fruit-name {
    padding-left: 2px;
}
/* ===============================
   FRUIT IMAGE
================================ */
.both-stock-fruit-image {
    width: 50px;
    height: 50px;
    object-fit: contain;

    filter:
        drop-shadow(0 4px 6px rgba(0,0,0,0.6))
        drop-shadow(0 0 10px rgba(140,190,255,0.45));
}

.both-stock-fruit-price-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 2px;
    align-items: center;
    color: rgb(203, 203, 203);
    font-size: 12px;
}
/* ===============================
   PRICE ICON
================================ */
.both-stock-fruit-price-image {
    width: 7px;
    height: 12px;
}


.stock-refreshing-overlay-normal, .stock-refreshing-overlay-mirage {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.refresh-normal, .refresh-mirage {
    display: none;
    border: 16px solid #f3f3f3; /* Light grey background border */
    border-top: 16px solid #3498db; /* Blue border for the spinning part */
    border-radius: 50%; /* Makes the div a perfect circle */
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite; /* Apply the animation */    
}
@keyframes spin {
    0% { transform: rotate(0deg); } /* Start at 0 degrees rotation */
    100% { transform: rotate(360deg); } /* End at 360 degrees rotation */
}

@media (max-width: 1000px) {
    .both-stock-fruit-grid-box {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}
@media (max-width: 700px) {
    .stock-title {
        font-size: 30px;
    }

    .stock-description {
        font-size: 13px;
    }
}
