/*Product Catalogue*/

.catalogue-page {
    max-width: 1200px;
}


.catalogue-search input{
    padding: 13px 16px;
    border: 1px solid #444444;
    background: #181818;
    color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.catalogue-search input::placeholder {
    color: #888888;
}

.catalogue-listing {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.product-card {
    overflow: hidden;
    border: 1px solid #333333;
    background: #181818;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card-image {
    width: 100%;
    height: 320px;

    overflow: hidden;

    background: #f6f6f6;
}

.product-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    transition: transform 0.4s ease;
}

.product-card-link:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-no-image {
    width: 100%;
    height: 100%;

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

    color: #777777;

    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

.product-card-details {
    padding: 20px;
}

.product-card-category {
    margin: 0 0 7px;

    color: #999999;

    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-card-name {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: normal;
}

.product-card-footer {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
}

.product-card-price {
    color: #ffffff;

    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.product-card-view {
    padding: 7px 13px;

    border: 1px solid #dddddd;
    border-radius: 4px;

    color: #ffffff;

    font-size: 13px;
    transition: color 0.3s ease;
}

.product-card-view:hover {
    background: white;
    color: black;
}

.product-card-view:hover::before {
    width: 100%
}

.catalogue-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    border: 1px solid #333333;

    text-align: center;
}

.catalogue-empty h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
}

.catalogue-empty p {
    margin: 0;
    color: #cccccc;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

.catalogue-filter-reset {
    display: inline-block;
    margin-top: 20px;
    color: #ffffff;
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: underline;
}

/*Product Catalogue Mobile*/
@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

    .catalogue-listing {
        grid-template-columns: 1fr;
    }

    .catalogue-search {
        flex-direction: column;
    }

    .catalogue-search input {
        width: 100%;
    }

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

    .product-card-image {
        height: 300px;
    }

}

/*Individual Product Page*/
.product-page {
    max-width: 1200px;
}
.back-button {
    margin-bottom: 20px;
}

.btn-back-link {
    display: inline-block;
    color: #cccccc;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-back-link i {
    font-size: 14px;
    color: #cccccc;
}

.btn-back-link:hover {
    color: #ffffff;
}

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    padding: 25px;
    border: 1px solid #333333;
    background: #181818;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.product-detail-media {
    width: 100%;
}

.product-detail-image {
    width: 100%;
    height: 550px;

    overflow: hidden;

    background: #f6f6f6;
}

.product-detail-image img,
.product-detail-image video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.product-detail-no-image {
    width: 100%;
    height: 550px;

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

    background: #222222;

    color: #777777;
}

.product-detail-info {
    display: flex;
    flex-direction: column;

    justify-content: center;
}

.product-detail-info .section-label {
    margin-bottom: 10px;
}

.product-detail-info h1 {
    margin: 0 0 15px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: normal;

    line-height: 1.2;
}

.product-detail-price {
    margin: 0 0 30px;

    color: #ffffff;

    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
}

.product-detail-description {
    padding: 25px 0;

    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.product-detail-description h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: normal;
}

.product-detail-description p {
    margin: 0;

    color: #cccccc;

    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;

    line-height: 1.7;
}

.product-detail-stock {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-top: 25px;

    color: #999999;

    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

.in-stock {
    color: #bdbdbd;

    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.out-stock {
    color: #999999;

    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-action {
    margin-top: 25px;
}

.product-add-cart {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #111111;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.product-add-cart:hover {
    background: black;

    border-color: white;

    color: white;
}

.product-add-cart.disabled {
    background: #333333;

    border-color: #333333;

    color: #777777;

    cursor: not-allowed;
}

/*Individual Product Page Mobile*/
@media (max-width: 600px) {

    .product-detail {
        padding: 15px;
        gap: 25px;
    }
    .product-detail-image {
        height: 350px;
    }
    .product-detail-no-image {
        height: 350px;
    }
    .product-detail-info h1 {
        font-size: 32px;
    }
    .product-detail-price {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .product-detail-image {
        height: 450px;
    }
    .product-detail-no-image {
        height: 450px;
    }
    .product-detail-info h1 {
        font-size: 36px;
    }
}

/* =========================
   Catalogue Search + Filter
========================= */

.search-filter {
    width: 100%;
    margin: 35px auto 45px;
}

.catalogue-search-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

/* Search field */
.catalogue-search {
    position: relative;
    flex: 1;
    margin: 0;
}

.catalogue-search input {
    width: 100%;
    height: 52px;

    padding: 0 18px 0 48px;

    border: 1px solid #555555;
    border-radius: 6px;

    background: #151515;
    color: #ffffff;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;

    box-sizing: border-box;
    outline: none;

    transition: border-color 0.2s ease;
}

.catalogue-search input::placeholder {
    color: #888888;
}

.catalogue-search input:focus {
    border-color: #888888;
}

.search-icon {
    position: absolute;
    left: 17px;
    top: 40%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 18px;
    pointer-events: none;
}


/*Filter button*/
.filter-dropdown {
    position: relative;
    flex-shrink: 0;
}

.filter-button {
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 18px;

    background: #151515;
    color: #ffffff;

    border: 1px solid #555555;
    border-radius: 6px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

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

.filter-button:hover {
    border-color: #888888;
    background: #1c1c1c;
}

.filter-button i {
    font-size: 15px;
}


/*Dropdown filter*/
.filter-menu {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 300px;

    padding: 20px;

    background: #181818;

    border: 1px solid #444444;
    border-radius: 8px;

    box-sizing: border-box;

    z-index: 100;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.filter-menu.show {
    display: block;
}

/*Filters*/
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}

.select-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    left: 230px;
    font-size: 14px;
    color: #ffffff;
    pointer-events: none;
}

.filter-group label {
    color: #aaaaaa;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    height: 42px;

    padding: 0 10px;

    background: #222222;
    color: #ffffff;

    border: 1px solid #444444;
    border-radius: 5px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;

    cursor: pointer;
    outline: none;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: #777777;
}


/*Clear filter*/
.clear-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 10px 12px;

    box-sizing: border-box;

    text-align: center;
    text-decoration: none;

    border: 1px solid #555555;
    border-radius: 5px;

    color: #aaaaaa;
    background: transparent;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;

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

.clear-filter-button:hover {
    color: #ffffff;
    border-color: #888888;
    background: #222222;
}


/* =========================
   Mobile
========================= */

@media (max-width: 600px) {

    .catalogue-search-row {
        gap: 8px;
    }

    .filter-button {
        width: 52px;
        padding: 0;
    }

    /* Hide "Filter" text on small screens */
    .filter-button .filter-text {
        display: none;
    }

    .filter-menu {
        position: fixed;

        left: 15px;
        right: 15px;
        top: auto;

        width: auto;
    }
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 14px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    background: #ffffff;
    color: #111111;

    border-radius: 20px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;

    line-height: 1;
}
