/*-----------------------------PRODUCTS (listing, category and single pages)----------------------------- */

/* Accelerate has no grid framework, so the product pages bring their own layout. */
.swp-primary {
    float: none;
    width: 100%;
}

.swp-primary .entry-header {
    margin-bottom: 25px;
}

.swp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
    margin-bottom: 10px;
}

[hidden].swp-group {
    display: none;
}

/* Buttons */
.swp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border: 2px solid #1f387c;
    border-radius: 6px;
    background: #fff;
    color: #1f387c;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.swp-btn:hover,
.swp-btn:focus {
    background: #1f387c;
    color: #fff;
    text-decoration: none;
}

.swp-btn-sm {
    padding: 5px 12px;
    font-size: .9rem;
}

/* Category filter */
.swp-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.swp-filter .swp-filter-btn {
    border: 2px solid #1f387c;
    background: #fff;
    color: #1f387c;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.swp-filter .swp-filter-btn:hover,
.swp-filter .swp-filter-btn.active {
    background: #1f387c;
    color: #fff;
}

.swp-filter .swp-filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 56, 124, .3);
}

/* Category groups */
.swp-group {
    margin-bottom: 30px;
}

.swp-group-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.swp-group-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #0e7cc0;
    margin: 10px auto 0;
}

.swp-group-desc {
    text-align: center;
    color: #555;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* Product card */
.swp-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.swp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.swp-card-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f5f8fc;
    padding: 15px;
}

.swp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swp-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.swp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    padding: 0;
}

.swp-card-title a {
    color: #222;
    text-decoration: none;
}

.swp-card-title a:hover {
    color: #1f387c;
    text-decoration: none;
}

.swp-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swp-card-actions .swp-btn {
    flex: 1;
    white-space: nowrap;
}

/* Sale badge */
.swp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: #0e7cc0;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Quick features */
.swp-quick {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: .9rem;
    color: #444;
}

.swp-quick li {
    position: relative;
    list-style: none;
    padding-left: 16px;
    margin: 0 0 3px;
}

.swp-quick li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f387c;
}

.swp-quick-lg {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Price */
.swp-price {
    margin-bottom: 12px;
}

.swp-price-now {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3f8f2c;
}

.swp-price-was {
    color: #999;
    margin-left: 4px;
}

.swp-price-off {
    display: inline-block;
    background: #e2f1fb;
    color: #0b649b;
    font-size: .8rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.swp-price-call {
    font-weight: 700;
    color: #1f387c;
}

.swp-price-lg .swp-price-now {
    font-size: 1.9rem;
}

.swp-price-lg .swp-price-was {
    font-size: 1.1rem;
}

/* Breadcrumb */
.swp-breadcrumb {
    font-size: .9rem;
    color: #666;
    margin-bottom: 25px;
}

.swp-breadcrumb a {
    color: #1f387c;
}

.swp-breadcrumb span {
    margin: 0 6px;
}

/* Single product */
.swp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.swp-single-img {
    position: relative;
    background: #f5f8fc;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.swp-single-img img {
    max-height: 480px;
    width: auto;
    object-fit: contain;
}

.swp-single-cat {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
    font-weight: 700;
    color: #0e7cc0;
    margin: 0 0 5px;
}

.swp-single-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
    margin: 0 0 12px;
    padding: 0;
}

.swp-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swp-single-actions .swp-btn {
    padding: 10px 22px;
}

.swp-section {
    margin-top: 40px;
}

.swp-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    padding: 0 0 10px;
    margin: 0 0 20px;
    border-bottom: 3px solid #1f387c;
    display: inline-block;
}

.swp-description img {
    max-width: 100%;
    height: auto;
}

.swp-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 25px;
}

.swp-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    list-style: none;
    margin: 0;
}

.swp-features i {
    color: #3f8f2c;
    margin-top: 4px;
}

.swp-table-wrap {
    overflow-x: auto;
}

.swp-specs-table {
    width: 100%;
    max-width: 800px;
    margin: 0;
    border-collapse: collapse;
    border: 0;
}

.swp-specs-table th,
.swp-specs-table td {
    padding: 10px 14px;
    text-align: left;
    border: 0;
    border-top: 1px solid #e3e9f1;
}

.swp-specs-table tr:nth-child(odd) {
    background: #f5f8fc;
}

.swp-specs-table th {
    width: 40%;
    font-weight: 600;
    color: #333;
}

@media (max-width: 767px) {
    .swp-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .swp-single-title {
        font-size: 1.6rem;
    }

    .swp-single-actions .swp-btn {
        flex: 1;
    }

    .swp-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}
