:root {
    --primary: #d63f7e;
    --primary-dark: #8b2954;
    --bg: #f5f5f5;
    --border: #e5e5e5;
    --white: #ffffff;
    --upload-bg: #faf3f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

/* HEADER */

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header small {
    color: #777;
    font-size: 14px;
    letter-spacing: 2px;
}

.header h1 {
    color: var(--primary);
    margin-top: 8px;
    font-size: 48px;
    font-weight: 700;
}

.page-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 36px;
}

/* KARTAT */

.card {
    background: var(--white);
    border-radius: 22px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-card {
    position: relative;
}

.section-title {
    margin-bottom: 15px;
    font-size: 30px;
    color: #333;
}

.upload-description {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
}

/* NGARKIMI I FOTOGRAFISË */

.upload-box {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    width: 100%;
    height: 300px;
    padding: 15px;

    border: 2px dashed #ff4f8d;
    border-radius: 16px;
    background: var(--upload-bg);

    cursor: pointer;
    overflow: hidden;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.upload-label:hover {
    background: #fceaf2;
    border-color: var(--primary);
}

.upload-icon {
    display: block;
    color: #ff4f8d;
    font-size: 52px;
}

.upload-text-label {
    display: block;
    max-width: 100%;
    text-align: center;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
}

/* PAMJA PARAPRAKE E FOTOGRAFISË */

.preview-image {
    display: none;

    position: absolute;
    top: 10px;
    left: 10px;

    width: calc(100% - 20px);
    height: calc(100% - 20px);

    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);

    object-fit: contain;
    object-position: center;

    border-radius: 10px;
    background: var(--upload-bg);
}

/* BUTONI PËR HEQJEN E FOTOGRAFISË */

.remove-image {
    display: none;

    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;

    width: 42px;
    height: 42px;

    border: 1px solid #eee;
    border-radius: 50%;

    background: #fff;
    color: #ff2b5c;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.remove-image:hover {
    background: #ff2b5c;
    color: #fff;
}

/* LABEL-ET DHE FUSHAT */

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

label span {
    color: #ff4f8d;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    max-width: 100%;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 15px;
    font-size: 16px;

    background: #fff;
    color: #333;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 63, 126, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

select {
    cursor: pointer;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* SASIA */

.quantity {
    display: flex;
    align-items: stretch;

    width: 100%;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #fff;
}

.quantity button {
    flex: 0 0 60px;

    border: none;
    background: #fff;

    color: var(--primary-dark);
    font-size: 28px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.quantity button:hover {
    background: #fceaf2;
}

.quantity input {
    flex: 1;
    min-width: 0;

    border: none;
    border-radius: 0;

    box-shadow: none;
    text-align: center;

    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity input::-webkit-inner-spin-button,
.quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* BUTONI PËR SHTIMIN E PRODUKTIT */

.add-product {
    display: block;

    width: 100%;
    min-height: 58px;

    border: 2px solid var(--primary);
    border-radius: 14px;

    background: #fff;
    color: var(--primary-dark);

    font-size: 17px;
    font-weight: 600;

    margin-bottom: 25px;
    padding: 12px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.add-product:hover {
    background: var(--primary);
    color: #fff;
}

/* BUTONI PËR HEQJEN E PRODUKTIT */

.remove-product {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 2;

    width: 40px;
    height: 40px;

    background: #fff;
    border: 1px solid #f3d5e1;
    border-radius: 50%;

    color: #ff4f8d;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.remove-product:hover {
    background: #ff4f8d;
    color: #fff;
}

/* TITULLI I KONTAKTIT DHE ADRESËS */

.icon-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;
}

.icon-title h3 {
    font-size: 28px;
    color: #333;
}

.icon-title i {
    flex-shrink: 0;
    font-size: 26px;
    color: #7a4be1;
}

.icon-title .map-icon {
    color: #ff4f8d;
}

/* BUTONI PËR DËRGIMIN E POROSISË */

.submit-btn {
    display: block;

    width: 100%;
    min-height: 65px;

    border: 2px solid var(--primary);
    border-radius: 14px;

    background: #fff;
    color: var(--primary-dark);

    font-size: 19px;
    font-weight: 700;

    padding: 14px;
    margin-bottom: 25px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary);
    color: #fff;
}

button:focus-visible,
.upload-label:focus-visible {
    outline: 3px solid rgba(214, 63, 126, 0.45);
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .container {
        max-width: 600px;
    }

    .header h1 {
        font-size: 42px;
    }

    .page-title {
        font-size: 30px;
    }

    .card {
        padding: 22px;
        border-radius: 18px;
    }

    .section-title {
        font-size: 27px;
    }

    .upload-label {
        height: 280px;
    }

    .icon-title h3 {
        font-size: 25px;
    }
}

/* TELEFON */

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .header {
        margin-bottom: 22px;
    }

    .header small {
        font-size: 12px;
    }

    .header h1 {
        font-size: 36px;
    }

    .page-title {
        font-size: 25px;
        margin-bottom: 22px;
    }

    .card {
        padding: 17px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 24px;
        padding-right: 35px;
    }

    .upload-description {
        font-size: 14px;
    }

    .upload-label {
        height: 250px;
        padding: 12px;
        gap: 12px;
    }

    .upload-icon {
        font-size: 44px;
    }

    .upload-text-label {
        font-size: 14px;
    }

    .preview-image {
        top: 8px;
        left: 8px;

        width: calc(100% - 16px);
        height: calc(100% - 16px);

        max-width: calc(100% - 16px);
        max-height: calc(100% - 16px);
    }

    .remove-image {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .remove-product {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    label {
        font-size: 14px;
    }

    input,
    select,
    textarea {
        padding: 13px;
        font-size: 16px;
    }

    .quantity button {
        flex-basis: 48px;
    }

    .add-product {
        min-height: 54px;
        font-size: 15px;
    }

    .icon-title {
        gap: 10px;
    }

    .icon-title h3 {
        font-size: 22px;
    }

    .icon-title i {
        font-size: 23px;
    }

    .submit-btn {
        min-height: 58px;
        font-size: 17px;
    }
}
