/* =========================================================
   PRODUCT PAGE
========================================================= */

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 11px;
    color: #888;
}

.product-breadcrumb a {
    color: #ff3d81;
}

.product-breadcrumb i {
    font-size: 9px;
}

.product-breadcrumb strong {
    color: #333;
}


/* =========================================================
   PRODUCT GALLERY
========================================================= */

.product-gallery {
    position: sticky;
    top: 20px;
}

.product-main-image {
    width: 100%;
    height: 520px;

    background: #fafafa;

    border: 1px solid #eee;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.no-product-image {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #aaa;
}

.no-product-image i {
    font-size: 60px;
    margin-bottom: 10px;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.product-thumbnails {
    display: flex;
    gap: 10px;

    margin-top: 12px;

    overflow-x: auto;
}

.product-thumbnail {
    width: 72px;
    height: 72px;

    flex-shrink: 0;

    padding: 3px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    cursor: pointer;

    overflow: hidden;
}

.product-thumbnail.active {
    border: 2px solid #ff3d81;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 5px;
}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.product-details {
    padding: 5px 10px;
}

.product-brand {
    color: #777;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .5px;

    margin-bottom: 7px;
}

.product-title {
    font-size: 25px;

    line-height: 1.35;

    font-weight: 600;

    color: #222;

    margin-bottom: 12px;
}


/* =========================================================
   RATING
========================================================= */

.product-rating {
    display: flex;

    align-items: center;

    gap: 10px;
}

.rating-box {
    background: #198754;

    color: #fff;

    border-radius: 4px;

    padding: 5px 8px;

    font-size: 11px;

    font-weight: 600;
}

.rating-box i {
    font-size: 8px;
}

.rating-text {
    font-size: 10px;

    color: #777;
}


/* =========================================================
   PRICE
========================================================= */

.product-price-section {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 15px;
}

.product-sale-price {
    font-size: 27px;

    font-weight: 700;

    color: #222;
}

.product-original-price {
    font-size: 14px;

    color: #999;

    text-decoration: line-through;
}

.product-discount {
    font-size: 12px;

    font-weight: 600;

    color: #16a34a;
}

.price-note {
    font-size: 9px;

    color: #888;

    margin-top: 3px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.product-description {
    margin-top: 20px;

    padding: 15px 0;

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;

    font-size: 12px;

    color: #555;

    line-height: 1.8;
}


/* =========================================================
   SELECTION
========================================================= */

.selection-section {
    margin-top: 22px;
}

.selection-label {
    font-size: 12px;

    font-weight: 600;

    margin-bottom: 10px;

    color: #333;
}


/* =========================================================
   COLORS
========================================================= */

.color-options {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.color-option {
    padding: 9px 16px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 7px;

    color: #444;

    font-size: 11px;

    cursor: pointer;

    transition: .2s;
}

.color-option:hover {
    border-color: #ff3d81;

    color: #ff3d81;
}

.color-option.active {
    border-color: #ff3d81;

    background: #fff1f6;

    color: #ff3d81;

    font-weight: 600;
}


/* =========================================================
   SIZE
========================================================= */

.size-options {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.size-option {
    min-width: 52px;

    height: 40px;

    background: #fff;

    border: 1px solid #ccc;

    border-radius: 6px;

    font-size: 11px;

    cursor: pointer;
}

.size-option:hover {
    border-color: #ff3d81;
}

.size-option.active {
    border: 2px solid #ff3d81;

    color: #ff3d81;

    background: #fff1f6;

    font-weight: 600;
}

.size-option.disabled {
    color: #bbb;

    background: #f5f5f5;

    text-decoration: line-through;

    cursor: not-allowed;
}

.no-size {
    font-size: 11px;

    color: #999;
}


/* =========================================================
   STOCK
========================================================= */

.variant-stock {
    margin-top: 12px;

    font-size: 11px;

    color: #198754;

    font-weight: 600;
}

.variant-stock i {
    margin-right: 4px;
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-control {
    display: flex;

    align-items: center;

    width: 125px;

    height: 40px;

    border: 1px solid #ddd;

    border-radius: 7px;

    overflow: hidden;
}

.quantity-control button {
    width: 38px;

    height: 100%;

    border: none;

    background: #f8f8f8;

    cursor: pointer;
}

.quantity-control button:hover {
    background: #fff1f6;

    color: #ff3d81;
}

.quantity-control input {
    width: 49px;

    height: 100%;

    border: none;

    text-align: center;

    font-size: 12px;

    outline: none;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.product-actions {
    display: flex;

    gap: 10px;

    margin-top: 25px;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;

    height: 48px;

    border-radius: 7px;

    border: none;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}

.btn-add-cart {
    background: #ff3d81;

    color: #fff;
}

.btn-add-cart:hover {
    background: #e91e68;
}

.btn-buy-now {
    background: #111827;

    color: #fff;
}

.btn-buy-now:hover {
    background: #000;
}


/* =========================================================
   FEATURES
========================================================= */

.product-features {
    display: flex;

    gap: 20px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eee;
}

.product-features > div {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 10px;

    color: #666;
}

.product-features i {
    color: #ff3d81;

    font-size: 17px;
}

/* =========================================================
   PRODUCT LISTING
========================================================= */

.product-listing-page {
    background: #f7f8fa;
    min-height: 70vh;
}

.listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #888;
    margin-bottom: 20px;
}

.listing-breadcrumb a {
    color: #ff3d81;
}

.listing-breadcrumb i {
    font-size: 8px;
}


/* =========================================================
   HEADER
========================================================= */

.listing-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.listing-eyebrow {
    color: #ff3d81;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.listing-header h1 {
    margin: 4px 0;
    font-size: 25px;
    font-weight: 600;
}

.listing-header p {
    margin: 0;
    color: #888;
    font-size: 10px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-wrapper label {
    font-size: 10px;
    color: #777;
    white-space: nowrap;
}

.sort-wrapper .form-select {
    width: 180px;
    height: 40px;
    font-size: 10px;
    border-radius: 7px;
}


/* =========================================================
   FILTER CARD
========================================================= */

.filter-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-header strong {
    font-size: 14px;
}

.filter-header strong + span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 5px;
    border-radius: 50%;
    background: #ff3d81;
    color: #fff;
    font-size: 9px;
}

.filter-header a {
    color: #ff3d81;
    font-size: 9px;
    font-weight: 600;
}


/* =========================================================
   FILTER SECTIONS
========================================================= */

.filter-section {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section > label:first-child {
    display: block;
    margin-bottom: 11px;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   SEARCH
========================================================= */

.filter-search {
    position: relative;
}

.filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 11px;
}

.filter-search input {
    width: 100%;
    height: 38px;
    padding: 0 10px 0 34px;
    border: 1px solid #ddd;
    border-radius: 7px;
    outline: none;
    font-size: 10px;
}

.filter-search input:focus {
    border-color: #ff3d81;
}


/* =========================================================
   RADIO OPTIONS
========================================================= */

.filter-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    cursor: pointer;
    font-size: 10px;
    color: #555;
}

.filter-option input {
    accent-color: #ff3d81;
}


/* =========================================================
   SIZE
========================================================= */

.filter-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-size-grid label {
    margin: 0;
}

.filter-size-grid input {
    display: none;
}

.filter-size-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 9px;
    cursor: pointer;
}

.filter-size-grid input:checked + span {
    border-color: #ff3d81;
    background: #fff1f6;
    color: #ff3d81;
    font-weight: 600;
}


/* =========================================================
   SELECT
========================================================= */

.filter-select {
    height: 38px;
    font-size: 10px;
    border-radius: 7px;
}


/* =========================================================
   PRICE
========================================================= */

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-inputs input {
    width: 100%;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 10px;
}

.price-inputs span {
    color: #999;
}


/* =========================================================
   APPLY
========================================================= */

.apply-filter-button {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 7px;
    background: #ff3d81;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    margin-top: 18px;
}

.apply-filter-button:hover {
    background: #e91e68;
}


/* =========================================================
   ACTIVE FILTERS
========================================================= */

.active-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
    font-size: 9px;
    color: #777;
}

.filter-tag {
    padding: 5px 9px;
    border-radius: 20px;
    background: #fff1f6;
    color: #ff3d81;
    font-weight: 600;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.listing-product-card {
    height: 100%;
}


/* =========================================================
   PAGINATION
========================================================= */

.listing-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 35px;
}

.listing-pagination a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 10px;
}

.listing-pagination a:hover,
.listing-pagination a.active {
    background: #ff3d81;
    border-color: #ff3d81;
    color: #fff;
}


/* =========================================================
   EMPTY
========================================================= */

.listing-empty {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    padding: 80px 20px;
}

.listing-empty > div {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f6;
    color: #ff3d81;
    font-size: 25px;
}

.listing-empty h3 {
    font-size: 17px;
}

.listing-empty p {
    color: #888;
    font-size: 10px;
}

.empty-reset-button {
    display: inline-flex;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 7px;
    background: #ff3d81;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

/* =========================================================
   WISHLIST
========================================================= */

.wishlist-page-header {
    margin-bottom: 25px;
}

.wishlist-page-header > span {
    color: #ff3d81;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.wishlist-page-header h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 4px 0;
}

.wishlist-page-header p {
    color: #888;
    font-size: 10px;
    margin: 0;
}

.wishlist-empty {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
}

.wishlist-empty > div {
    width: 75px;
    height: 75px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f6;
    color: #ff3d81;
    font-size: 32px;
}

.wishlist-empty h3 {
    font-size: 18px;
}

.wishlist-empty p {
    color: #888;
    font-size: 10px;
    margin-bottom: 20px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .filter-card {
        position: static;
    }

}

@media (max-width: 576px) {

    .listing-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-wrapper .form-select {
        flex: 1;
        width: auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .product-gallery {
        position: static;
    }

    .product-main-image {
        height: 450px;
    }

}

@media (max-width: 576px) {

    .product-main-image {
        height: 350px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-sale-price {
        font-size: 23px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-features {
        flex-wrap: wrap;
    }


}