:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --secondary-h: #2980b9;
    --save: #007bff;
    --save-h: #065bb8;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: gray;
    --silver: silver;
    --success: #27ae60;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --y: yellow;
    --y-h: #d9cb09;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    margin-top: 20px;
    background: #f6f7f8;
    color: #333;
    line-height: 1.6;
    font-family: 'Montserrat', Arial, sans-serif;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    text-transform: none;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.loader {
}

.title1 {
    border: 1px solid var(--silver);
    border-radius: 5px;
    color: var(--dark);
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px;
}

.btn {
    flex: 1;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.save {
    background-color: var(--save);
    color: #fff;
}

.save:hover {
    background-color: var(--save-h);
}

.add-to-cart {
    background-color: var(--secondary);
    color: #fff;
}

.add-to-cart:hover {
    background-color: var(--secondary-h);
}

.ia {
    background-color: var(--y);
    color: #000;
}

.ia:hover {
    background-color: var(--y-h);
}

.btn1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #cfd4d9;
    border-radius: 8px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 14px;
}

.btn3 {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #111;
    cursor: pointer;
    text-decoration: none;
}

.btn3:hover {
    background: #f3f4f6;
}

.headbtns {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.wrap {
    display: grid;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: silver;
}

.box {
    width: 100%;
    min-width: 700px;
    margin: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.tar {
    text-align: right;
}

.tal {
    text-align: left;
}

.tac {
    text-align: center;
}

.d1 {
    width: 100%;
    border: solid 1px silver;
    border-radius: 12px;
}

.box1 {
    display: block;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.inp1 {
    width: 100%;
    padding: 10px;
    border: 0;
    outline: none;
    background: transparent;
    text-align: right;
    color: red !important;
}

@media (max-width: 768px) {
    .wrap {
        max-width: 100%;
        margin: 0;
        padding: 0 8px;
        justify-content: stretch;
    }

    .box {
        min-width: 0;
        width: 100%;
        margin: 8px 0;
        padding: 12px;
    }
}

.modal_loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal_loading.is_on {
    display: flex;
}

.modal_loading .modal_box {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 220px;
    max-width: 92vw;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.modal_loading .modal_text {
    font-size: 14px;
    color: #111;
}

.loader {
    width: 18px;
    height: 18px;
    border: 3px solid #e5e7eb;
    border-top-color: #111;
    border-radius: 50%;
    animation: wcspin 0.9s linear infinite;
}

@keyframes wcspin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
