/* ========== FONT ========== */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ========== ROOT VARIABLES ========== */
:root {
    --color-main: #007bff;
    --color-hover: #0056b3;
}

/* ========== BASE STYLES ========== */
html, body {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family: 'Roboto', Arial, sans-serif;
}

body.swal2-shown {
    overflow-y: auto !important;
    padding-right: 0 !important;
}

/* ========== HEADER ========== */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 50px;
    padding-top: 10px;

    background-color: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* ========== HEADER SECTIONS ========== */
.title-container {
    flex: 1;
    margin: 0;
    text-align: center;
}

.search-container {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.search-container form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 52%;
}

.search-container input {
    flex: 1;
    padding: 8px 12px;

    font-size: 16px;

    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;

    transition: border 0.3s ease;
}

.search-container input:focus {
    border-color: var(--color-main);
}

.search-container button {
    padding: 8px 13px;

    font-size: 16px;
    color: white !important;

    background-color: var(--color-main);
    border: none;
    border-radius: 5px;

    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.search-container button:hover {
    background-color: var(--color-hover);
    transform: scale(1.05);
}

.action-container {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-container button {
    position: relative;
    padding: 8px 13px;
    margin-right:3px;

    font-size: 16px;
    color: white !important;

    background-color: var(--color-main);
    border: none;
    border-radius: 5px;

    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* ========== BUTTONS (INDIVIDUAL) ========== */
.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 0px;

    padding: 0;

    font-size: 30px;
    font-weight: bold;
    color: var(--color-main);

    background-color: #fff;
    border: 0 solid #ff6a00;
    border-radius: 0;

    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-button:hover {
    color: var(--color-hover);
    transform: scale(1.05);
}

.yesbutton,
.btn-ok {
    position: relative;
    padding: 8px 13px;

    font-size: 16px;
    color: white !important;

    background-color: var(--color-main);
    border: 1px solid var(--color-main);
    border-radius: 5px;

    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.yesbutton:hover,
.btn-ok:hover {
    background-color: var(--color-hover);
    border-color: var(--color-hover);
    color: white;
    transform: scale(1.05);
}

.nobutton,
.btn-no {
    position: relative;
    padding: 8px 13px;

    font-size: 16px;
    color: white !important;

    background-color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 5px;

    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.nobutton:hover,
.btn-no:hover {
    background-color: #c0392b;
    border-color: #c82333;
    color: white;
    transform: scale(1.05);
}

.btn-one {
    padding: 5px;
    font-size: 14px;
    color: white;
    text-decoration: none;

    background: var(--color-main);
    border: 1px solid var(--color-main);
    border-radius: 5px;

    cursor: pointer;
}

.btn-one:hover {
    background: var(--color-hover);
    border-color: var(--color-hover);
    color: white;
}

.btn-add {
    padding: 5px;
    font-size: 14px;
    color: black;
    text-decoration: none;

    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 5px;

    cursor: pointer;
}

.btn-add:hover {
    background: var(--color-hover);
    border-color: var(--color-hover);
    color: white;
}

.btn-add:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-border {
    color: var(--color-main);
    border: 1px solid var(--color-main);
}

.btn-row{
    display:flex;
    gap:5px;
    width:100%;
    margin-top:4px;
}

.btn-row .btn-stockout{
    flex:1;
    margin:0 !important;
    width:auto !important;
}

.btn-request{
    flex:1;
}
/* ========== SHARED INPUT FIELD ========== */
.input {
    flex: 1;
    padding: 8px 12px;

    font-size: 16px;

    border: 1px solid var(--color-main);
    border-radius: 5px;

    outline: none;
    transition: border 0.3s ease;
}

.input:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--color-main);
}

/* ========== CART BADGE ========== */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;

    padding: 5px 9px;

    font-size: 12px;
    font-weight: bold;
    color: #ffffff;

    background: #ff4d4d;
    border-radius: 50%;

    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
    }

    .title-container {
        margin-bottom: 5px;
        text-align: center;
    }

    .search-container {
        width: 100%;
    }

    .search-container form {
        width: 90%;
        align-items: flex-start;
    }

    .action-container {
        width: 100%;
        justify-content: center;
        margin: 10px 0 10px 0px;
    }

    .action-container button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ========== FOOTER ========== */
footer {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 50px;

    color: black;
    background-color: #f2f2f2;

    margin-top: auto;
}
