/* ==========================================================================
   Pornomondo Sex Toys — Product Card Styles
   ========================================================================== */

.pm-toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pm-toy-card {
    background: var(--pm-card-bg, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.pm-toy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Badges */
.pm-toy-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-toy-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    display: inline-block;
}

.pm-toy-badge-discount {
    background: #ff3b30;
    color: #ffffff;
}

.pm-toy-badge-promo {
    background: var(--pm-accent-color);
    color: #ffffff;
}

/* Image Container */
.pm-toy-card-media {
    position: relative;
    padding-top: 100%; /* square ratio */
    background: #ffffff;
    overflow: hidden;
}

.pm-toy-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.4s ease;
}

.pm-toy-card:hover .pm-toy-card-media img {
    transform: scale(1.05);
}

/* Content Area */
.pm-toy-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.pm-toy-card-brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.pm-toy-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pm-text-color);
    line-height: 1.4;
    margin: 0 0 10px 0;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pm-toy-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pm-toy-card-title a:hover {
    color: var(--pm-accent-color);
}

/* Ratings */
.pm-toy-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.pm-toy-card-stars {
    display: inline-flex;
    color: #ffcc00;
}

.pm-toy-card-stars .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pm-toy-card-rating-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--pm-text-color);
}

.pm-toy-card-rating-count {
    font-size: 11px;
    color: var(--pm-text-muted);
}

/* Features Bullets */
.pm-toy-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--pm-text-muted);
}

.pm-toy-card-features li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-toy-card-features li::before {
    content: "•";
    color: var(--pm-accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Colors Selection */
.pm-toy-card-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    align-items: center;
}

.pm-toy-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Prices & CTA Block */
.pm-toy-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.pm-toy-card-pricing {
    display: flex;
    flex-direction: column;
}

.pm-toy-card-prices-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pm-toy-price-old {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--pm-text-muted);
}

.pm-toy-price-current {
    font-size: 18px;
    font-weight: 800;
    color: #ff3b30;
}

.pm-toy-price-savings {
    font-size: 10px;
    font-weight: 700;
    color: var(--pm-text-muted);
    margin-top: 2px;
}

.pm-toy-stock-status {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Buttons actions */
.pm-toy-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-toy-action-wishlist {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--pm-text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pm-toy-action-wishlist:hover {
    color: var(--pm-accent-color);
    border-color: var(--pm-accent-color);
    background-color: var(--pm-primary-light, rgba(255, 59, 104, 0.03));
}

.pm-toy-action-cart {
    background: var(--pm-accent-color);
    color: #ffffff !important;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 59, 104, 0.2);
}

.pm-toy-action-cart:hover {
    background: var(--pm-accent-color-hover, #e02853);
    transform: scale(1.05);
}

.pm-toy-action-cart .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .pm-toys-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Sex Toys Marketplace Sidebar & Filters
   ========================================================================== */

/* Sidebar Widget styling */
.pm-toy-sidebar-widget {
    background-color: var(--pm-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pm-toy-sidebar-title {
    font-family: var(--pm-font-headings);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pm-text-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category menu tree */
.pm-toy-sidebar-menu,
.pm-toy-sidebar-submenu,
.pm-toy-sidebar-subsubmenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pm-toy-sidebar-menu li {
    margin-bottom: 10px;
}

.pm-menu-item-link-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pm-toy-cat-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--pm-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pm-toy-cat-link:hover,
.pm-toy-sidebar-menu li.active > .pm-menu-item-link-wrap > .pm-toy-cat-link {
    color: var(--pm-accent-color);
}

.term-count {
    font-size: 11px;
    color: var(--pm-text-muted);
    opacity: 0.7;
}

.pm-toy-sidebar-submenu,
.pm-toy-sidebar-subsubmenu {
    padding-left: 14px;
    margin-top: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Checkbox checklist filters */
.pm-filter-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

.pm-filter-checklist::-webkit-scrollbar {
    width: 6px;
}

.pm-filter-checklist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.pm-filter-checklist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.pm-filter-checklist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pm-filter-checklist li {
    margin-bottom: 12px;
}

.pm-filter-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--pm-text-muted);
    transition: color 0.2s ease;
    user-select: none;
}

.pm-filter-checkbox-label:hover {
    color: var(--pm-text-color);
}

.pm-filter-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.pm-checkbox-custom {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pm-filter-checkbox-label:hover .pm-checkbox-custom {
    border-color: rgba(255, 255, 255, 0.3);
}

.pm-filter-checkbox-label input:checked ~ .pm-checkbox-custom {
    background-color: var(--pm-accent-color);
    border-color: var(--pm-accent-color);
    box-shadow: 0 0 8px rgba(255, 59, 104, 0.3);
}

.pm-checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-filter-checkbox-label input:checked ~ .pm-checkbox-custom::after {
    display: block;
}

.pm-filter-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-filter-count {
    font-size: 11px;
    color: var(--pm-text-muted);
    opacity: 0.6;
    margin-left: 8px;
}

/* Sidebar select list */
.pm-toy-sidebar-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--pm-text-color);
    font-family: var(--pm-font-body);
    font-size: 13.5px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-toy-sidebar-select:focus {
    border-color: var(--pm-accent-color);
    box-shadow: 0 0 8px rgba(255, 59, 104, 0.2);
}

/* Colors swatch button grid */
.pm-toy-sidebar-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-color-swatch-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.pm-color-swatch-btn:hover {
    transform: scale(1.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 255, 255, 0.15);
}

.pm-color-swatch-btn .dashicons {
    color: #ffffff;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.pm-color-swatch-btn.active {
    transform: scale(1.2);
    border-color: var(--pm-accent-color);
    box-shadow: 0 0 10px var(--pm-accent-color), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.pm-color-swatch-btn.active .dashicons {
    display: block;
}

/* Active filters sidebar box */
.pm-active-filters-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.pm-active-filters-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 12px;
}

.pm-active-filters-list li span {
    color: var(--pm-text-muted);
}

.pm-active-filters-list li strong {
    color: var(--pm-text-color);
}

.pm-remove-filter-btn {
    color: var(--pm-text-muted);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    padding: 2px;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.pm-remove-filter-btn:hover {
    color: var(--pm-accent-color);
}

.pm-reset-all-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: rgba(255, 59, 104, 0.08);
    border: 1px solid rgba(255, 59, 104, 0.18);
    border-radius: 8px;
    padding: 10px;
    color: var(--pm-accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}

.pm-reset-all-filters-btn:hover {
    background: var(--pm-accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 59, 104, 0.25);
}

