@import url("https://fonts.googleapis.com/css2?family=Cairo:ital,wght@0,300..900;1,300..900&display=swap");

:root {
    --primary-color: #6b5a3a;
    --secondary-color: #a4d4e2;
    --max-width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    line-height: 1.15;
}

body {
    font-family: Cairo, sans-serif;
    background: #ffffff;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    display: inline-block;
    padding: 0 !important;
}

input,
button,
select {
    font-family: Cairo, sans-serif;
}

.form-wrapper-link {
    position: absolute;
    bottom: 0;
    transform: translateY(-750px);
}

@keyframes scale_buy_btn_lead {
    0% {
        transform: translate(-50%, -50%) scale(0.87);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

#fade_buy_btn_lead {
    animation-name: scale_buy_btn_lead;
    animation-duration: 500ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    top: calc(100vh - 100px);
    text-align: center;
    z-index: 999;
    position: fixed;
    transform: translate(-50%, -50%) scale(0.996852);
    padding: 10px !important;
    font-size: 20px;
    left: 50%;
    text-decoration: none;
    width: var(--max-width);
    background: #ff9d00;
    color: #fff;
    border: none;
    border-radius: 5px;
}

.form-title,
.form-subtitle,
.form-price {
    text-align: center;
    line-height: 0;
    margin: 0;
}

.form-title {
    font-size: 32px;
    color: #282828;
    line-height: 50px;
    font-weight: 600;
}

.top h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}
.form-subtitle {
    display: block;
    line-height: 25px !important;
    font-size: 24px;
    color: var(--primary-color);
}

.form-price {
    color: #28d32c;
    font-size: 32px;
    display: block;
    line-height: 39px;
    text-align: center;
}

section {
    margin: 0;
    margin-bottom: 20px;
    background-color: transparent;
}

.inner-container {
    margin: 0;
    margin-bottom: 35px;
}

.fr-view {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
}

.title-section-content {
    margin: 0;
    width: fit-content;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-section-content a {
    border: solid;
    border-radius: 40px;
    padding: 10px 20px;
    font-weight: 820;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

.part-1,
.part-2 {
    display: flex;
    justify-content: center;
    margin: 0;
}

.part-1 img,
.part-2 img {
    max-width: var(--max-width);
    height: auto;
    display: block;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 6px;
    align-items: center;
}

.form-input input,
.form-input select {
    width: 100%;
    border: 2px solid var(--primary-color);
    background: var(--field);
    border-radius: 999px;
    padding: 5px 10px;

    font-size: 12px;
    outline: none;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
    text-align: center;
}
.field:focus {
    border-color: #9f8a60;
    background: #f7f7f7;
}

/* Arabic placeholders on the right like the screenshot */
.field.rtl {
    text-align: center;
    direction: rtl;
}

.full {
    grid-column: 1 / -1;
}

.form-input input::placeholder {
    color: #999;
}

.form-error {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.cta {
    display: block;
    width: min(200px, 100%);
    margin: 22px auto 0;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    padding: 16px 22px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.08s ease,
        background 0.15s ease;
}
.cta:hover {
    background: var(--secondary-color);
}
.cta:active {
    transform: translateY(1px);
}

.image-option {
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
    border: 3px solid #a9a9a9;
    border-radius: 5px;
}

.image-option img {
    max-width: 100%;
    height: auto;
    vertical-align: top;
    border-radius: 5px;
}

.selected {
    border-color: var(--secondary-color);
}

#color-options {
    display: none;
}

.product-list {
    margin: 20px 0;
}

.product-item {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 60px;
    height: auto;
    margin-left: 10px;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.checkout-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    width: 100%;
    max-width: var(--max-width);
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s;
    position: relative;
}

.checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    display: none;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.top {
    text-align: center;
    position: relative;
    padding-top: 6px;
}

.bow {
    position: absolute;
    top: -32px;
    left: -10px;
    width: 90px !important;
    transform: rotate(180deg);
    transform-box: fill-box;
    transform-origin: center;
}

.checkout-btn.loading .loader {
    display: inline-block;
}

.checkout-btn.loading span {
    visibility: hidden;
}

.ff-form {
    padding: 0 20px;
    position: relative;
}

.form-container-wrapper {
    position: relative;
    z-index: 1;
}

.form-container-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.form-container {
    border-color: var(--primary-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    background-color: #fff;
    border-radius: 20px;
    padding: 10px;
    position: absolute;
    width: calc(var(--max-width) - 15px);
    bottom: 100px;
    z-index: 200;
    display: block;
    margin: 0 auto;
}

footer {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-text {
    opacity: 0.8;
}

.products {
    margin: 10px 0 20px 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 0;
    max-width: var(--max-width);
}
.product {
    text-align: center;
    color: #fff;
}

.product .thumb {
    border-radius: 10px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product img {
    width: 92%;
    height: auto;
    display: block;
    /* filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); */
}
.product .name {
    margin-top: 10px;
    font-weight: 700;
    font-size: 18px;
}
