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

:root {
    --primary: #6941d9;
    --primary-dark: #5835bd;
    --primary-light: #f2efff;
    --text: #1d2939;
    --text-light: #667085;
    --border: #eaecf0;
    --background: #fafbfc;
    --dark: #101828;
    --star: #f4a900;
    --trendyol: #f97316;
    --hepsiburada: #ea580c;
    --amazon: #232f3e;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 50% 15%, rgba(105, 65, 217, .10), transparent 30%), radial-gradient(circle at 5% 40%, rgba(140, 100, 255, .06), transparent 20%), var(--background);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

.container {
    width: min(1400px, calc(100% - 48px));
    margin: auto;
}

/* HEADER */
header {
    height: 76px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #805ad5, #5632c7);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 42px;
    height: 76px;
}

.nav-links a {
    font-size: 14px;
    color: #344054;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: "";
    height: 2px;
    background: var(--primary);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.header-search {
    width: 420px;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
}

.header-search input {
    border: 0;
    outline: none;
    flex: 1;
    font-size: 13px;
}

.header-search button {
    border: 0;
    color: white;
    background: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.login-btn {
    border: 0;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #7853dd, #5631c9);
    box-shadow: 0 8px 20px rgba(105, 65, 217, .22);
}

/* HERO */
.hero {
    position: relative;
    text-align: center;
    padding: 72px 0 55px;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.7;
    max-width: 650px;
    margin: auto;
}

.search-area {
    width: min(680px, 100%);
    margin: 35px auto 26px;
    display: flex;
    padding: 7px;
    border-radius: 20px;
    background: white;
    border: 1px solid #dfe3eb;
    box-shadow: 0 15px 40px rgba(16, 24, 40, .08);
}

.search-area i {
    width: 50px;
    display: grid;
    place-items: center;
    color: #667085;
}

.search-area input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 14px;
    min-width: 0;
}

.search-area button {
    border: 0;
    color: white;
    padding: 14px 34px;
    border-radius: 13px;
    cursor: pointer;
    background: linear-gradient(135deg, #7b52e3, #5630c8);
}

.review-count {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.review-count strong {
    color: #475467;
}

/* FLOATING REVIEWS */
.floating-review {
    position: absolute;
    width: 190px;
    padding: 18px;
    text-align: left;
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(234, 236, 240, .9);
    box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
}

.floating-review .stars {
    margin-bottom: 10px;
}

.floating-review p {
    color: #475467;
    font-size: 12px;
    line-height: 1.55;
}

.float-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: #667085;
    position: absolute;
    right: -18px;
    bottom: -18px;
    border: 3px solid white;
}

.review-1 {
    top: 60px;
    left: 4%;
}

.review-2 {
    top: 270px;
    left: 7%;
}

.review-3 {
    top: 75px;
    right: 5%;
}

.review-4 {
    top: 265px;
    right: 6%;
}

/* STARS */
.stars {
    color: var(--star);
    font-size: 14px;
    letter-spacing: 2px;
}

.stars .empty {
    color: #d0d5dd;
}

/* SECTION */
section {
    padding: 34px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    letter-spacing: -.5px;
}

.section-header a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

/* CATEGORIES */
.category-section {
    padding: 20px 0 35px;
}

.category-title {
    text-align: center;
    margin-bottom: 22px;
    font-size: 20px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.category {
    min-height: 115px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    transition: .25s ease;
}

.category:hover {
    transform: translateY(-5px);
    border-color: #c6b8f4;
    box-shadow: 0 15px 35px rgba(16, 24, 40, .08);
}

.category i {
    font-size: 25px;
    color: var(--primary);
}

.category span {
    font-size: 14px;
    font-weight: 600;
}

/* REVIEW CARDS */
.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-card {
    min-height: 365px;
    padding: 18px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border);
    transition: .25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, .08);
}

.review-product {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.product-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: #f2f4f7;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 14px;
    line-height: 1.5;
    margin: 7px 0 0;
}

.author {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #667085, #344054);
}

.author strong {
    display: block;
    font-size: 11px;
}

.author span {
    color: var(--text-light);
    font-size: 10px;
}

.review-text {
    color: #475467;
    font-size: 12px;
    line-height: 1.8;
    min-height: 88px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.review-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.tag {
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
}

.review-actions {
    display: flex;
    gap: 12px;
    color: #667085;
    font-size: 12px;
}

/* BRANDS */
.brands {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.brand {
    text-align: center;
}

.brand-logo {
    width: 88px;
    height: 88px;
    margin: auto auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover .brand-logo {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.15);
    border-color: #c7d2fe;
}

.brand-img {
    width: 100%;
    height: 100%;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
    display: block;
    margin: auto;
}

.brand-fallback-text {
    font-size: 15px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: 0.5px;
}

.brand strong {
    display: block;
    font-size: 13px;
}

.brand span {
    color: var(--text-light);
    font-size: 11px;
}

/* CTA */
.cta {
    margin: 45px 0;
    padding: 35px 45px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: linear-gradient(90deg, rgba(105, 65, 217, .08), rgba(105, 65, 217, .02)), white;
    border: 1px solid #ddd6fe;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cta-icon {
    width: 75px;
    height: 75px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: white;
    background: linear-gradient(135deg, #8a66e8, #5733c9);
}

.cta h2 {
    font-size: 23px;
    margin-bottom: 8px;
}

.cta p {
    color: var(--text-light);
    font-size: 14px;
}

.write-review {
    flex-shrink: 0;
    border: 0;
    padding: 15px 35px;
    border-radius: 9px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #7955df, #5630c7);
}

/* PRODUCT DETAIL LAYOUT */
.product-page {
    padding: 40px 0 70px;
}

.product-page .container {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
    padding-right: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

/* LEFT SIDEBAR - PRODUCT INFO */
.product-sidebar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
    position: sticky;
    top: 100px;
}

.product-header-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 320px;
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 12px;
}

.product-header-img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 290px;
    object-fit: contain;
    border-radius: 8px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.score-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.big-score {
    font-size: 44px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.score-details .stars {
    font-size: 16px;
    color: var(--star);
    margin-bottom: 4px;
}

.score-details span {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* PLATFORM BREAKDOWN BADGES */
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.badge-trendyol {
    color: var(--trendyol);
}

.badge-hepsiburada {
    color: var(--hepsiburada);
}

.badge-amazon {
    color: var(--amazon);
}

/* RATING BARS */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.bar-bg {
    flex: 1;
    height: 6px;
    background: #eaecf0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--star);
    border-radius: 4px;
}

/* RIGHT CONTENT - REVIEWS */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FILTERS TOOLBAR */
.filter-toolbar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(16, 24, 40, .02);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.tab-btn {
    border: 1px solid var(--border);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: .2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.sort-select {
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    color: var(--text);
    background: white;
    font-weight: 500;
}

/* REVIEW ITEM CARD */
.review-card-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    transition: .25s ease;
    box-shadow: 0 4px 20px rgba(16, 24, 40, .02);
}

.review-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 220px;
    min-width: 0;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7853dd, #5631c9);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-meta strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.bg-trendyol {
    background: var(--trendyol);
}

.bg-hepsiburada {
    background: var(--hepsiburada);
}

.bg-amazon {
    background: var(--amazon);
}

.variant-info {
    font-size: 11px;
    color: var(--text-light);
    margin-left: 6px;
}

.review-item-right {
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
}

.item-stars {
    color: var(--star);
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    letter-spacing: 2px;
    display: block;
}

.review-date {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}

.review-comment {
    color: #344054;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.review-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f2f4f7;
    font-size: 12px;
    color: var(--text-light);
}

.helpful-btn {
    border: 1px solid var(--border);
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .2s;
}

.helpful-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #c6b8f4;
}

.helpful-btn.voted,
.helpful-btn.active {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #818cf8 !important;
    font-weight: 700 !important;
    cursor: default !important;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.15);
}

.helpful-btn.voted i,
.helpful-btn.active i {
    color: #4f46e5 !important;
    animation: thumbBounce 0.3s ease;
}

@keyframes thumbBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* FOOTER */
footer {
    background: #101828;
    color: white;
    padding: 50px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-text {
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.8;
    max-width: 210px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #d0d5dd;
    background: #344054;
    font-size: 13px;
}

footer h4 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-links a {
    color: #98a2b3;
    font-size: 12px;
}

.newsletter p {
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 13px;
    font-size: 11px;
}

.newsletter-form button {
    width: 48px;
    border: 0;
    color: white;
    background: var(--primary);
}

.copyright {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #344054;
    color: #98a2b3;
    font-size: 11px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .floating-review {
        display: none;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: static;
    }

    .header-search {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-page .container {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .search-area {
        border-radius: 14px;
    }

    .search-area button {
        padding: 12px 18px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .brands {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta {
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-content {
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .login-btn {
        padding: 10px 13px;
        font-size: 12px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .search-area {
        flex-wrap: wrap;
    }

    .search-area input {
        height: 48px;
    }

    .search-area button {
        width: 100%;
    }

    .section-header {
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
