/**
 * Frontend Styles for WAG IT Inventory - Shopping Style + Catalog
 */

/* Cart Widget */
.wag-cart-widget {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

.wag-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    transition: all 0.3s ease;
}

.wag-cart-link:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.wag-cart-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.wag-cart-label {
    font-weight: 600;
    font-size: 14px;
}

.wag-cart-count {
    background: #fff;
    color: #0073aa;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}

/* Catalog Layout - Full Width */
.wag-catalog-wrapper {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    background: #f5f5f5;
}

.wag-catalog-container {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Mobile Filter Toggle - Hidden by default */
.wag-mobile-filter-toggle {
    display: none;
}

/* Sidebar Filters */
.wag-catalog-sidebar {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.wag-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wag-filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
}

.wag-clear-filters {
    font-size: 13px;
    color: #dc3232;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.wag-clear-filters:hover {
    color: #a00;
}

.wag-filter-section {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.wag-filter-section:last-child {
    border-bottom: none;
}

.wag-filter-section h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
}

/* Search Box */
.wag-search-box {
    display: flex;
    gap: 5px;
}

.wag-search-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.wag-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.wag-search-submit {
    padding: 10px 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.wag-search-submit:hover {
    background: #005a87;
}

.wag-search-submit .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Filter Lists */
.wag-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wag-filter-list li {
    margin-bottom: 8px;
}

.wag-filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    gap: 8px;
}

.wag-filter-list a:hover {
    background: #f8f9fa;
    color: #0073aa;
}

.wag-filter-list a.active {
    background: #e8f4f8;
    color: #0073aa;
    font-weight: 600;
}

.wag-filter-list .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wag-count {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.wag-filter-list a.active .wag-count {
    background: #0073aa;
    color: #fff;
}

/* Status Dots */
.wag-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.wag-status-dot.status-available {
    background: #46b450;
}

.wag-status-dot.status-out_of_stock {
    background: #dc3232;
}

.wag-status-dot.status-in_use {
    background: #ffb900;
}

.wag-status-dot.status-maintenance {
    background: #dc3232;
}

.wag-status-dot.status-retired {
    background: #999;
}

/* Quantity Filter */
.wag-qty-filter {
    display: flex;
    gap: 8px;
}

.wag-qty-input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
}

.wag-qty-submit {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.wag-qty-submit:hover {
    background: #005a87;
}

/* Active Filters Tags */
.wag-active-filters .wag-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wag-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.wag-filter-tag:hover {
    background: #005a87;
}

.wag-filter-tag .wag-remove {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Catalog Main Content */
.wag-catalog-main {
    flex: 1;
    min-width: 0;
}

.wag-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 18px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wag-results-info {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.wag-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wag-cart-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    position: relative;
}

.wag-cart-link-btn:hover {
    background: #005a87;
    color: #fff;
}

.wag-cart-link-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wag-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc3232;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.wag-sort-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.wag-sort-select:focus {
    outline: none;
    border-color: #0073aa;
}

/* No Results */
.wag-no-results {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wag-no-results .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.wag-no-results h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #23282d;
}

.wag-no-results p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 15px;
}

.wag-no-results .button {
    padding: 12px 30px;
    font-size: 15px;
}

/* Pagination */
.wag-pagination {
    margin-top: 40px;
    text-align: center;
}

.wag-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 3px;
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.wag-pagination .page-numbers:hover {
    background: #f5f5f5;
    border-color: #0073aa;
    color: #0073aa;
}

.wag-pagination .page-numbers.current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Responsive - Catalog */
@media (max-width: 1200px) {
    .wag-catalog-sidebar {
        flex: 0 0 240px;
    }
}

@media (max-width: 992px) {
    .wag-catalog-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .wag-catalog-sidebar {
        position: static;
        flex: 1;
    }
    
    .wag-filter-section {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .wag-catalog-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .wag-toolbar-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .wag-sort-select {
        width: 100%;
    }
    
    /* Mobile Filter Toggle */
    .wag-mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: #0073aa;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        width: 100%;
        transition: background 0.2s;
    }
    
    .wag-mobile-filter-toggle:hover {
        background: #005a87;
    }
    
    .wag-mobile-filter-toggle .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
        transition: transform 0.3s;
    }
    
    .wag-mobile-filter-toggle.active .dashicons {
        transform: rotate(180deg);
    }
    
    .wag-catalog-sidebar {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        margin-bottom: 0;
    }
    
    .wag-catalog-sidebar.active {
        max-height: 2000px;
        margin-bottom: 20px;
    }
}

/* Shopping Grid */
.wag-inventory-shop {
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 20px;
}

/* Shop Controls */
.wag-shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wag-results-count {
    font-size: 16px;
    color: #666;
}

.wag-results-count strong {
    color: #0073aa;
    font-size: 20px;
}

.wag-view-toggle {
    display: flex;
    gap: 5px;
}

.wag-view-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.wag-view-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.wag-view-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.wag-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Grid Views */
.wag-shop-grid {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

/* 3 Column Grid (Default) */
.wag-shop-grid[data-view="grid-3"] {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* 4 Column Grid (Compact) */
.wag-shop-grid[data-view="grid-4"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* List View */
.wag-shop-grid[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 15px;
}

.wag-shop-grid[data-view="list"] .wag-shop-card {
    flex-direction: row;
    max-width: 100%;
}

.wag-shop-grid[data-view="list"] .wag-card-image {
    width: 200px;
    height: 180px;
    flex-shrink: 0;
}

.wag-shop-grid[data-view="list"] .wag-card-content {
    flex: 1;
}

.wag-shop-grid[data-view="list"] .wag-card-footer {
    width: 220px;
    flex-shrink: 0;
    border-top: none;
    border-left: 1px solid #e0e0e0;
}

/* Card Styles */
.wag-shop-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.wag-shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.wag-shop-card.out-of-stock {
    opacity: 0.6;
}

.wag-shop-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Legacy support */
.wag-inventory-list {
    margin: 20px 0;
}

.wag-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.wag-inventory-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wag-inventory-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.wag-card-image {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stock status background colors */
.wag-card-image.in-stock {
    background: linear-gradient(135deg, #46b450 0%, #2d8f3a 100%);
}

.wag-card-image.low-stock {
    background: linear-gradient(135deg, #ffb900 0%, #e0a200 100%);
}

.wag-card-image.out-of-stock {
    background: linear-gradient(135deg, #dc3232 0%, #a82828 100%);
}

/* Compact view adjustments */
.wag-shop-grid[data-view="grid-4"] .wag-card-image {
    height: 40px;
}

.wag-shop-grid[data-view="grid-4"] .wag-card-content {
    padding: 15px;
}

.wag-shop-grid[data-view="grid-4"] .wag-card-title {
    font-size: 16px;
    min-height: auto;
}

.wag-shop-grid[data-view="grid-4"] .wag-card-footer {
    padding: 12px 15px;
}

.wag-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wag-shop-card:hover .wag-card-image img {
    transform: scale(1.05);
}

.wag-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wag-stock-badge.in-stock {
    background: #46b450;
    color: #fff;
}

.wag-stock-badge.low-stock {
    background: #ffb900;
    color: #000;
}

.wag-stock-badge.out-of-stock {
    background: #dc3232;
    color: #fff;
}

.wag-item-content,
.wag-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wag-card-category {
    font-size: 11px;
    text-transform: uppercase;
    color: #0073aa;
    font-weight: 600;
    letter-spacing: 1px;
}

.wag-item-title,
.wag-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.wag-item-title a,
.wag-card-title a {
    color: #333;
    text-decoration: none;
}

.wag-item-title a:hover,
.wag-card-title a:hover {
    color: #0073aa;
}

.wag-item-meta,
.wag-card-subtitle {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.wag-card-sku {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

.wag-card-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #46b450;
    margin-top: 5px;
}

.wag-card-stock .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Quantity Display - Prominent Badge Style */
.wag-quantity-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border: 3px solid #46b450;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(70, 180, 80, 0.25);
    transition: all 0.3s ease;
}

.wag-shop-card:hover .wag-quantity-display {
    box-shadow: 0 5px 15px rgba(70, 180, 80, 0.35);
    transform: scale(1.05);
}

.wag-qty-label {
    font-size: 12px;
    font-weight: 700;
    color: #46b450;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wag-qty-value {
    font-size: 26px;
    font-weight: 800;
    color: #46b450;
    line-height: 1;
    min-width: 32px;
    text-align: center;
    background: linear-gradient(135deg, #46b450 0%, #2d8f3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Low Stock - Yellow/Orange */
.wag-shop-card.low-stock .wag-quantity-display {
    border-color: #ffb900;
    box-shadow: 0 3px 10px rgba(255, 185, 0, 0.25);
}

.wag-shop-card.low-stock:hover .wag-quantity-display {
    box-shadow: 0 5px 15px rgba(255, 185, 0, 0.35);
}

.wag-shop-card.low-stock .wag-qty-label {
    color: #ffb900;
}

.wag-shop-card.low-stock .wag-qty-value {
    color: #ffb900;
    background: linear-gradient(135deg, #ffb900 0%, #e0a200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Out of Stock - Red */
.wag-shop-card.out-of-stock .wag-quantity-display {
    border-color: #dc3232;
    box-shadow: 0 3px 10px rgba(220, 50, 50, 0.25);
}

.wag-shop-card.out-of-stock:hover .wag-quantity-display {
    box-shadow: 0 5px 15px rgba(220, 50, 50, 0.35);
}

.wag-shop-card.out-of-stock .wag-qty-label {
    color: #dc3232;
}

.wag-shop-card.out-of-stock .wag-qty-value {
    color: #dc3232;
    background: linear-gradient(135deg, #dc3232 0%, #a82828 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wag-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

.wag-item-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wag-item-status.status-available {
    background: #d4edda;
    color: #155724;
}

.wag-item-status.status-in_use {
    background: #d1ecf1;
    color: #0c5460;
}

.wag-item-status.status-maintenance {
    background: #fff3cd;
    color: #856404;
}

.wag-item-status.status-retired,
.wag-item-status.status-disposed {
    background: #f8d7da;
    color: #721c24;
}

.wag-item-checkout-status {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

.wag-item-checkout-status .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Card Footer & Buttons */
.wag-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wag-card-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wag-card-quantity label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.wag-qty-input {
    width: 60px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.wag-qty-input:focus {
    outline: none;
    border-color: #0073aa;
}

.wag-request-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wag-request-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.wag-request-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Add to Cart Button */
.wag-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wag-add-to-cart-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.wag-add-to-cart-btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.wag-add-to-cart-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.wag-add-to-cart-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wag-notify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #ccc;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    text-transform: uppercase;
}

.wag-details-link {
    display: block;
    text-align: center;
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 5px;
}

.wag-details-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.wag-item-link {
    display: inline-block;
    margin-top: 12px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.wag-item-link:hover {
    color: #005177;
    text-decoration: underline;
}

.wag-no-items {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Pagination */
.wag-pagination {
    margin: 30px 0;
    text-align: center;
}

.wag-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.wag-pagination .page-numbers:hover,
.wag-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Search Form */
.wag-inventory-search {
    margin: 20px 0;
    position: relative;
}

.wag-search-form {
    margin-bottom: 20px;
}

.wag-search-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.wag-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.wag-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.wag-search-button {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.wag-search-button:hover {
    background: #005177;
}

.wag-search-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wag-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 600px;
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: -20px;
}

.wag-search-results-inner {
    padding: 10px;
}

.wag-search-result-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.wag-search-result-item:last-child {
    border-bottom: none;
}

.wag-search-result-item:hover {
    background: #f9f9f9;
}

.wag-search-result-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.wag-search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.wag-search-result-meta {
    font-size: 13px;
    color: #666;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .wag-shop-grid[data-view="grid-3"] {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .wag-shop-grid[data-view="grid-4"] {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .wag-inventory-shop {
        padding: 0 10px;
    }
    
    .wag-shop-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .wag-view-btn-label {
        display: none;
    }
    
    .wag-shop-grid[data-view="grid-3"],
    .wag-shop-grid[data-view="grid-4"] {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .wag-shop-grid[data-view="list"] .wag-shop-card {
        flex-direction: column;
    }
    
    .wag-shop-grid[data-view="list"] .wag-card-image {
        width: 100%;
        height: 200px;
    }
    
    .wag-shop-grid[data-view="list"] .wag-card-footer {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .wag-inventory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wag-search-input-wrapper {
        flex-direction: column;
    }
    
    .wag-search-button {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .wag-shop-grid[data-view="grid-3"],
    .wag-shop-grid[data-view="grid-4"] {
        grid-template-columns: 1fr;
    }
    
    .wag-item-content,
    .wag-card-content {
        padding: 15px;
    }
    
    .wag-item-title,
    .wag-card-title {
        font-size: 16px;
    }
    
    .wag-view-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .wag-view-btn {
        flex: 1;
        justify-content: center;
        padding: 10px;
    }
}
