/* ============================================
   PQ Bike Rental — Frontend Styles v3.0
   ============================================ */

/* --- Filter --- */
.pq-bike-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 40px;
}
.pq-filter-btn {
    background: transparent;
    border: 2px solid #df453e;
    color: #df453e;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    font-family: inherit;
}
.pq-filter-btn:hover,
.pq-filter-btn.active {
    background: #df453e;
    color: #fff;
}

/* --- Grid --- */
.pq-bike-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}
@media (max-width: 991px) {
    .pq-bike-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pq-bike-grid { grid-template-columns: 1fr; }
}

/* --- Card --- */
.pq-bike-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}
.pq-bike-card.pq-hidden {
    display: none;
}

.pq-bike-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 280px;
}
.pq-bike-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.pq-bike-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}
.pq-bike-card:hover .pq-bike-image img {
    transform: scale(1.05);
}

.pq-bike-info {
    padding: 25px 25px 30px;
}

.pq-bike-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 600;
}

.pq-bike-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.3;
    color: #333;
}
.pq-bike-title a {
    color: inherit;
    text-decoration: none;
}
.pq-bike-title a:hover {
    color: #555;
}

/* --- Prices --- */
.pq-bike-price-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}
.pq-bike-prices {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.pq-bike-prices li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.pq-bike-prices li:last-child {
    border-bottom: none;
}
.pq-price-value {
    font-weight: 700;
    color: #333;
    font-size: 15px;
}
.pq-price-label {
    color: #777;
}

/* --- Rent Button --- */
button.pq-rent-btn {
    position: relative;
    display: block;
    width: 100%;
    background: #df453e;
    color: #fff;
    border: none;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}
button.pq-rent-btn:hover {
    background: #c53a34;
}
/* Text span sits above the wheel */
button.pq-rent-btn span {
    position: relative;
    z-index: 2;
    background: #df453e;
    padding: 2px 12px;
    transition: background 0.3s ease;
}
button.pq-rent-btn:hover span {
    background: #c53a34;
}
/* Rolling wheel */
button.pq-rent-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -26px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    z-index: 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='2' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Cline x1='12' y1='2' x2='12' y2='22' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='2' y1='12' x2='22' y2='12' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='4.93' y1='4.93' x2='19.07' y2='19.07' stroke='%23fff' stroke-width='1'/%3E%3Cline x1='19.07' y1='4.93' x2='4.93' y2='19.07' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}
button.pq-rent-btn:hover::after {
    animation: pq-wheel-roll 2.5s linear infinite;
}
@keyframes pq-wheel-roll {
    0%   { left: -26px;              transform: rotate(0deg); }
    100% { left: calc(100% + 2px);   transform: rotate(1080deg); }
}

/* ============================================
   Popup / Overlay
   ============================================ */
.pq-rental-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pq-rental-popup {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 35px 35px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pq-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.pq-popup-close:hover {
    color: #333;
}

.pq-popup-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #333;
}

.pq-popup-bike-name {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

/* --- Form --- */
.pq-rental-form input,
.pq-rental-form textarea,
.pq-rental-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
}
.pq-rental-form input:focus,
.pq-rental-form textarea:focus,
.pq-rental-form select:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

.pq-form-row {
    margin-bottom: 14px;
}
.pq-form-row-half {
    display: flex;
    gap: 12px;
}
.pq-form-row-half > * {
    flex: 1;
}

.pq-date-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pq-rental-form textarea {
    resize: vertical;
}

.pq-form-submit {
    display: block;
    width: 100%;
    background: #df453e;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
    margin-top: 6px;
}
.pq-form-submit:hover:not(:disabled) {
    background: #c53a34;
}
.pq-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pq-form-status {
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 14px;
    text-align: center;
}
.pq-status-success {
    background: #edf7ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.pq-status-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ============================================
   Single Product — Rental Form
   ============================================ */
.pq-product-rental-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.pq-product-form-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #333;
}

@media (max-width: 600px) {
    .pq-rental-popup {
        padding: 30px 20px 25px;
    }
    .pq-form-row-half {
        flex-direction: column;
        gap: 14px;
    }
}
