:root {
    --background: #f7f7f5;
    --text: #111111;
    --muted: #6b6b6b;
    --surface: #ffffff;
    --border: #e8e8e8;
    --accent: #ff5a1f;
    --dark: #111111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /*border: 1px solid red;*/
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
}

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

button,
input {
    font: inherit;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-mark{
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 5px;
    transform: rotate(45deg);
}

.brand-name {
    letter-spacing: -0.5px;
      transition: color 0.2s ease;
}

.brand:hover .brand-name {
    color: var(--accent);
}

.search-bar{
 display: flex;
 flex: 1;
 max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    outline: none;
    background: var(--surface);
}

.search-bar button {
    padding: 10px 18px;
    border: 1px solid var(--dark);
    background: var(--dark);
    color: var(--surface);
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

.search-bar button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.nav{
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--muted);

}



.nav a:hover {
    color:
     var(--accent);
     border-bottom: 2px solid var(--accent);
}

.nav-icon-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-icon-link img {
    width: 18px;
    height: 18px;
}


.sell-link {
    color: var(--text) !important;
    font-weight: 700 !important;
}


@media (max-width: 900px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .nav {
        margin-left: auto;
    }
}




.hero {
    padding: 100px 0;
}


.hero-label {
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
}


.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-mosaic {
    position: relative;
    flex: 1;
    min-height: 420px;
    max-width: 560px;
}

.mosaic-card {
    position: absolute;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mosaic-card-large {
    width: 320px;
    height: 370px;
    top: 10px;
    left: 60px;
    z-index: 2;
}

.mosaic-card-small {
  width: 220px;
    height: 250px;
    top: 0;
    right: -10px;
    z-index: 3;
}

.mosaic-card-medium {
     width: 240px;
    height: 210px;
    bottom: -10px;
    left: -10px;
    z-index: 4;
}

.mosaic-card-tall {
       width: 220px;
    height: 290px;
    bottom: 0;
    right: 20px;
    z-index: 1;
}





.categories {
    padding: 90px 0;
    border-top: 1px solid var(--border);
}

.section-heading {
    max-width: 600px;
    margin-bottom: 40px;
}

.section-label {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.section-heading h2 {
    margin-bottom: 12px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.section-heading p:last-child {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

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

.category-card {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.category-card h3 {
    font-size: 22px;
}

.category-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.category-card:hover span {
    color: var(--accent);
}

.trending {
    padding: 90px 0;
}

.trending-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.view-all:hover {
    color: var(--accent);
}






 /* Mobile Phone */

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.product-card {
    min-width: 0;
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--transparent);
    cursor: pointer;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}


.wishlist-btn.is-wishlisted {
    color: red;
}

.wishlist-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.product-info {
    padding-top: 14px;
}

.product-category {
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
}

.product-seller {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

/* Tablet */

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Laptop */

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}






.sell-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
    background: rgba(17, 17, 17, 0.6);
}

.sell-modal-content {
    position: relative;

    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;

    padding: 40px;
    border-radius: 16px;
    background: var(--surface);
}


.sell-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: var(--background);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sell-modal-close img {
    width: 18px;
    height: 18px;
}

.sell-modal-close:hover {
    background: var(--border);
    transform: scale(1.05);
}



.sell-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 14px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sell-form .btn {
    margin-top: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--dark);
    color: var(--surface);
    cursor: pointer;
}

.sell-form .btn:hover {
    background: var(--accent);
}

.image-preview {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.image-preview-item {
    position: relative;
    height: 120px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}


.image-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 28px;
    height: 28px;

    border: 0;
    border-radius: 50%;

    background: var(--surface);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.image-preview-remove img {
    width: 14px;
    height: 14px;
}


.product-detail-modal{
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
    background: rgba(17, 17, 17, 0.6);
}


.product-detail-modal-content {
    position: relative;

    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;

    padding: 40px;
    border-radius: 16px;
    background: var(--surface);
}


.product-detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;
    background: var(--background);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.product-detail-modal-close img {
    width: 18px;
    height: 18px;
}

.product-detail-modal-close:hover {
    background: var(--border);
}


.product-detail-content > img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 350px;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 10px;
}


.product-detail-content h2 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.2;
}

.product-detail-content p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-detail-content p:nth-of-type(1) {
    color: var(--muted);
    font-size: 14px;
}

.product-detail-content p:nth-of-type(2) {
    margin-top: 20px;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
}


.product-detail-content p:nth-of-type(3),
.product-detail-content p:nth-of-type(4),
.product-detail-content p:nth-of-type(5),
.product-detail-content p:nth-of-type(6) {
    font-size: 14px;
}

.product-detail-content p:nth-of-type(3),
.product-detail-content p:nth-of-type(4),
.product-detail-content p:nth-of-type(5),
.product-detail-content p:nth-of-type(6) {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.product-detail-content p:last-child {
    border-bottom: none;
}



.add-to-cart-btn {
    width: 100%;
    margin-top: 20px;
    padding: 13px 16px;

    border: none;
    border-radius: 8px;

    background: var(--accent);
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #e94d17;
    transform: translateY(-1px);
}
































































































/* =========================
   MOBILE PHONE
   ========================= */

@media (max-width: 599px) {

    /* Header */

    .site-header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand {
        font-size: 22px;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .nav {
        width: 100%;
        margin-left: 0;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav a {
        flex-shrink: 0;
    }


    /* Hero */

    .hero {
        padding: 60px 0;
    }

    .hero-container {
        flex-direction: column;
        align-items: stretch;
        gap: 50px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-mosaic {
        width: 100%;
        min-height: 360px;
    }

    .mosaic-card-large {
        width: 240px;
        height: 290px;
        left: 30px;
    }

    .mosaic-card-small {
        width: 170px;
        height: 200px;
        right: 0;
    }

    .mosaic-card-medium {
        width: 180px;
        height: 160px;
        left: 0;
        bottom: 0;
    }

    .mosaic-card-tall {
        width: 170px;
        height: 220px;
        right: 10px;
        bottom: 0;
    }


    /* Categories */

    .categories {
        padding: 60px 0;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .category-card {
        min-height: 150px;
        position: relative;
    }

    .category-card + .category-card {
        margin-top: -30px;
    }

    .category-card:nth-child(1) { z-index: 6; }
    .category-card:nth-child(2) { z-index: 5; }
    .category-card:nth-child(3) { z-index: 4; }
    .category-card:nth-child(4) { z-index: 3; }
    .category-card:nth-child(5) { z-index: 2; }
    .category-card:nth-child(6) { z-index: 1; }


    /* Trending */

    .trending {
        padding: 60px 0;
    }

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


/* =========================
   TABLET
   ========================= */

@media (min-width: 600px) and (max-width: 899px) {

    .site-header .container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .nav {
        margin-left: auto;
    }


    /* Hero */

    .hero {
        padding: 80px 0;
    }

    .hero-container {
        flex-direction: column;
        align-items: stretch;
        gap: 50px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-mosaic {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }


    /* Categories */

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


    /* Trending */

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


/* =========================
   LAPTOP
   ========================= */

@media (min-width: 900px) {

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