
* {

    box-sizing: border-box;

}
html {

    width: 100%;

    overflow-x: hidden;

}
body {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("/static/images/backgrounds/bg.jpg");
    background-size: cover;
    background-position: center;
    font-family: Arial;
    padding: 20px;
    margin: 0;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}
.title {
    color: #f5f5f5;
    font-size: clamp(42px, 8vw, 72px);
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
    overflow-wrap: anywhere;
}

.tagline {
    color: #e0e0e0;
    font-style: italic;
    opacity: 0.8;
    margin-top: -10px;
}

input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 20px;
}

.search-bar {
    border-radius: 999px;
    padding: 14px 20px;
    border: none;
    outline: none;
    width: min(100%, 500px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
    .similarity-bar {
        width: 45px;
    }

    .similarity-text {
        font-size: 11px;
    }
}

@media (max-width: 600px) {

    .dupe-block {
        width: 100%;
        min-width: 0;
    }

    .dupe-main-line {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
        align-items: center;
        width: 100%;
    }

    .dupe-info {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .partner-info {
        grid-column: 1;
        min-width: 0;
    }

    .extra-partners {
        margin-left: 0;
    }
}

.search-bar:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.perfume {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.dupe {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.dupe-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dupe-left {
    font-size: 14px;
}

.dupe-right {
    font-size: 13px;
    opacity: 0.8;
    background: rgba(0,0,0,0.2);
    padding: 3px 8px;
    border-radius: 6px;
}

.ad-container {
    margin: 20px auto;
    width: 320px;
    text-align: center;
    display: none;
}

.ad-box {
    background: rgba(0,0,0,0.3);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
}
.dupe-card {
    background: rgba(255,255,255,0.1);
    padding: 12px;
    margin-left: 20px;
    margin-top: 4px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.1s ease, background 0.2s ease;
    gap: 12px;
    min-width: 0;
}

.dupe-card:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.02);
}

.dupe-card:active {
    transform: scale(0.98);
}

.dupe-meta {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
}

.similarity {
    font-weight: bold;
    font-size: 13px;

    background: rgba(255, 255, 255, 0.15);
    color: white;

    padding: 3px 8px;
    border-radius: 8px;

    min-width: 45px;
    text-align: center;
}
.similarity-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.similarity-bar {
    width: 60px;
    height: 6px;
    background: rgba(194, 192, 192, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.similarity-bar .fill {
    height: 100%;
    background: rgb(247, 238, 141);
    border-radius: 10px;
}

.category {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
}

/* H */
.category.men {
    background: #3498db;
}

/* F */
.category.women {
    background: #e91e63;
}

/* U */
.category.unisex {
    background: #9c27b0;
}

.arrow {
    float: right;
    opacity: 0.6;
}

.dupe-main-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dupe-info {
    font-size: 1rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.partner-info {
    color: #777;
    font-size: 0.9rem;
    align-items: center;
}
.clickable {
    cursor: pointer;
}


.partner-info:hover {
    text-decoration: underline;
}

.extra-partners {
    margin-left: 232px;
    margin-top: 4px;
}

.partner-secondary {
    margin-top: 2px;
    color: #777;
    cursor: pointer;
    font-size: 0.6rem;
}

.partner-secondary:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}

.footer a {
    color: #666;
    text-decoration: none;
    margin: 0 6px;
}

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

.legal-page {

    display: flex;
    justify-content: center;

    padding: 60px 20px;
}

.legal-card {

    width: min(900px, 95%);
    padding: 40px;

    background: rgba(20,20,20,.72);
    backdrop-filter: blur(8px);

    border-radius: 18px;

    box-shadow:
        0 12px 40px rgba(0,0,0,.45);

    color: #f5f5f5;
}
.legal-card h1 {

    font-size: 56px;
    margin-bottom: 10px;

    color: white;
}
.updated{

    font-style: italic;
    color:#d5d5d5;

    margin-bottom:40px;
}
.legal-card p{

    font-size:18px;

    line-height:1.75;

    margin-bottom:22px;

    text-align:justify;
}
.legal-card h2{

    margin-top:40px;
    margin-bottom:16px;

    font-size:28px;

    color:white;
}
.legal-card ul{

    margin-left:28px;

    margin-bottom:30px;
}

.legal-card ul {

    margin: 0 0 30px 0;

    padding-left: 20px;

}

.legal-card li {

    margin-bottom: 10px;

    line-height: 1.7;

}
@media (max-width:768px){

    .legal-card{

        padding:25px;
    }

    .legal-card h1{

        font-size:40px;
    }

    .legal-card h2{

        font-size:24px;
    }

    .legal-card p{

        font-size:16px;
    }
}
.page-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;

        width: min(900px, 95%);
    padding: 40px;

    background: rgba(20,20,20,.72);
    backdrop-filter: blur(8px);

    border-radius: 18px;

    box-shadow:
        0 12px 40px rgba(0,0,0,.45);

    color: #f5f5f5;
}

.page-description {
    color: #bdbdbd;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    background: #252525;
    color: #f5f5f5;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form button {
    margin-top: 30px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #7a5cff;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.contact-form button:hover {
    background: #6748ff;
}

.wsite {
    display: none;
}

@media (max-width: 768px) {
    .extra-partners {
        margin-left: 0;
    }
}

.about {
    max-width: 640px;
    margin-top: 30px;
    padding: 20px 25px;
    color: white;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
}

.about h2 {

    margin-top: 0;

    color: white;

}

.about p {

    color: white;

    line-height: 1.6;

}

.rating-form-details summary {
    display: inline-block;
    cursor: pointer;
    color: #9a7b16;
    font-size: 0.9em;
    font-weight: 600;
    padding: 4px 0;
}

.rating-form-details summary:hover {
    text-decoration: underline;
}

.rating-form {
    margin-top: 10px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    max-width: 420px;
}

.rating-field {
    margin-bottom: 12px;
}

.rating-field > label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.rating-field label span {
    font-weight: normal;
    font-size: 0.85em;
    color: #777;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    border: none;
    background: none;
    padding: 0;
    font-size: 1.5rem;
    cursor: pointer;
}

.buy-again {
    display: flex;
    gap: 15px;
}

.rating-form textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-family: inherit;
}

.rating-submit {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
}

.rating-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.rating-error {
    margin-top: 8px;
    font-size: 0.9em;
}

.rating-success {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.rating-info {
    margin-top: 8px;
}

.rating-summary {
    font-size: 0.95rem;
}

.rating-count {
    color: #777;
}

.rating-details {
    margin-top: 4px;
}

.rating-details summary {
    cursor: pointer;
    color: #555;
    font-size: 0.9em;
}

.rating-detail-list {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.rating-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 5px 0;
}

.rating-stars {
    color: #d6b656;
    letter-spacing: 1px;
    white-space: nowrap;
}

.rating-value {
    display: inline-block;
    min-width: 28px;
    text-align: right;
    color: #666;
    font-size: 0.9em;
}