/**
 * ShelfPulls Frontend Styles
 * Modern, responsive styles for the ShelfPulls plugin
 */

:root {
    --shelfpulls-primary: #2563eb;
    --shelfpulls-primary-dark: #1d4ed8;
    --shelfpulls-secondary: #10b981;
    --shelfpulls-secondary-dark: #059669;
    --shelfpulls-danger: #ef4444;
    --shelfpulls-warning: #f59e0b;
    --shelfpulls-success: #10b981;
    --shelfpulls-gray-50: #f9fafb;
    --shelfpulls-gray-100: #f3f4f6;
    --shelfpulls-gray-200: #e5e7eb;
    --shelfpulls-gray-300: #d1d5db;
    --shelfpulls-gray-400: #9ca3af;
    --shelfpulls-gray-500: #6b7280;
    --shelfpulls-gray-600: #4b5563;
    --shelfpulls-gray-700: #374151;
    --shelfpulls-gray-800: #1f2937;
    --shelfpulls-gray-900: #111827;
    --shelfpulls-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shelfpulls-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shelfpulls-radius: 8px;
    --shelfpulls-radius-lg: 12px;
}

.shelfpulls-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.shelfpulls-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--shelfpulls-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.shelfpulls-button.button-primary {
    background: var(--shelfpulls-primary);
    color: #fff;
}

.shelfpulls-button.button-primary:hover {
    background: var(--shelfpulls-primary-dark);
    color: #fff;
}

.shelfpulls-button.button-secondary {
    background: var(--shelfpulls-gray-100);
    color: var(--shelfpulls-gray-700);
}

.shelfpulls-button.button-secondary:hover {
    background: var(--shelfpulls-gray-200);
}

.shelfpulls-button.button-outline {
    background: transparent;
    border: 2px solid var(--shelfpulls-primary);
    color: var(--shelfpulls-primary);
}

.shelfpulls-button.button-outline:hover {
    background: var(--shelfpulls-primary);
    color: #fff;
}

.shelfpulls-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: var(--shelfpulls-gray-500);
}

.shelfpulls-breadcrumb a {
    color: var(--shelfpulls-gray-600);
    text-decoration: none;
}

.shelfpulls-breadcrumb a:hover {
    color: var(--shelfpulls-primary);
}

.shelfpulls-breadcrumb .separator {
    color: var(--shelfpulls-gray-300);
}

.shelfpulls-breadcrumb .current {
    color: var(--shelfpulls-gray-800);
    font-weight: 500;
}

.shelfpulls-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 24px;
}

.shelfpulls-products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shelfpulls-products-list .shelfpulls-product-card {
    display: flex;
    gap: 20px;
}

.shelfpulls-products-list .shelfpulls-product-card .product-image-link {
    width: 200px;
    flex-shrink: 0;
}

.shelfpulls-product-card {
    background: #fff;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shelfpulls-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shelfpulls-shadow-lg);
}

.shelfpulls-product-card .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--shelfpulls-danger);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.shelfpulls-product-card .product-image-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--shelfpulls-gray-100);
}

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

.shelfpulls-product-card:hover .product-image {
    transform: scale(1.05);
}

.shelfpulls-product-card .product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shelfpulls-gray-100);
    color: var(--shelfpulls-gray-400);
}

.shelfpulls-product-card .product-image-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.shelfpulls-product-card .product-details {
    padding: 16px;
}

.shelfpulls-product-card .product-brand {
    display: block;
    font-size: 12px;
    color: var(--shelfpulls-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.shelfpulls-product-card .product-title {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.4;
}

.shelfpulls-product-card .product-title a {
    color: var(--shelfpulls-gray-800);
    text-decoration: none;
}

.shelfpulls-product-card .product-title a:hover {
    color: var(--shelfpulls-primary);
}

.shelfpulls-product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.shelfpulls-product-card .original-price {
    font-size: 14px;
    color: var(--shelfpulls-gray-400);
    text-decoration: line-through;
}

.shelfpulls-product-card .current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--shelfpulls-gray-900);
}

.shelfpulls-product-card .product-condition {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shelfpulls-product-card .product-condition.condition-new {
    background: #dcfce7;
    color: #166534;
}

.shelfpulls-product-card .product-condition.condition-shelf_pull {
    background: #dbeafe;
    color: #1e40af;
}

.shelfpulls-product-card .product-condition.condition-open_box {
    background: #fef3c7;
    color: #92400e;
}

.shelfpulls-product-card .product-condition.condition-refurbished {
    background: #f3e8ff;
    color: #6b21a8;
}

.shelfpulls-product-card .product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.shelfpulls-product-card .offer-count {
    font-size: 12px;
    color: var(--shelfpulls-gray-500);
}

.shelfpulls-product-card .product-actions {
    margin-top: auto;
}

.shelfpulls-product-card .product-actions .shelfpulls-button {
    width: 100%;
}

.shelfpulls-comparison-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

.shelfpulls-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow);
    overflow: hidden;
}

.shelfpulls-comparison-table th {
    background: var(--shelfpulls-gray-50);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--shelfpulls-gray-700);
    border-bottom: 1px solid var(--shelfpulls-gray-200);
}

.shelfpulls-comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--shelfpulls-gray-100);
    vertical-align: middle;
}

.shelfpulls-comparison-table tr:last-child td {
    border-bottom: none;
}

.shelfpulls-comparison-table tr.best-offer {
    background: #f0fdf4;
}

.shelfpulls-comparison-table .seller-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shelfpulls-comparison-table .seller-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.shelfpulls-comparison-table .seller-name {
    font-weight: 600;
    color: var(--shelfpulls-gray-800);
}

.shelfpulls-comparison-table .best-price-badge {
    display: inline-block;
    background: var(--shelfpulls-success);
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.shelfpulls-comparison-table .price-cell .original-price {
    display: block;
    font-size: 12px;
    color: var(--shelfpulls-gray-400);
    text-decoration: line-through;
}

.shelfpulls-comparison-table .price-cell .current-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--shelfpulls-gray-900);
}

.shelfpulls-comparison-table .free-shipping {
    color: var(--shelfpulls-success);
    font-weight: 600;
}

.shelfpulls-comparison-table .total-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--shelfpulls-gray-900);
}

.shelfpulls-comparison-table .condition-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.shelfpulls-buy-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--shelfpulls-radius);
    text-align: center;
    transition: all 0.2s ease;
}

.shelfpulls-buy-button.primary {
    background: var(--shelfpulls-primary);
    color: #fff;
}

.shelfpulls-buy-button.primary:hover {
    background: var(--shelfpulls-primary-dark);
}

.shelfpulls-buy-button.secondary {
    background: var(--shelfpulls-gray-100);
    color: var(--shelfpulls-gray-700);
}

.shelfpulls-buy-button.secondary:hover {
    background: var(--shelfpulls-gray-200);
}

.shelfpulls-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.shelfpulls-search-form {
    background: #fff;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow-lg);
    padding: 16px;
}

.shelfpulls-search-input-group {
    display: flex;
    gap: 12px;
}

.shelfpulls-search-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid var(--shelfpulls-gray-200);
    border-radius: var(--shelfpulls-radius);
    outline: none;
    transition: border-color 0.2s ease;
}

.shelfpulls-search-input:focus {
    border-color: var(--shelfpulls-primary);
}

.shelfpulls-search-button {
    padding: 14px 28px;
    background: var(--shelfpulls-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--shelfpulls-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.shelfpulls-search-button:hover {
    background: var(--shelfpulls-primary-dark);
}

.shelfpulls-search-filters {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--shelfpulls-gray-100);
}

.shelfpulls-filter-select {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--shelfpulls-gray-200);
    border-radius: var(--shelfpulls-radius);
    background: #fff;
    cursor: pointer;
}

.shelfpulls-categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 20px;
}

.shelfpulls-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow);
    text-decoration: none;
    transition: all 0.2s ease;
}

.shelfpulls-category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shelfpulls-shadow-lg);
}

.shelfpulls-category-tile .category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shelfpulls-primary);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 12px;
}

.shelfpulls-category-tile .category-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.shelfpulls-category-tile .category-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--shelfpulls-gray-800);
    text-align: center;
}

.shelfpulls-category-tile .category-count {
    font-size: 13px;
    color: var(--shelfpulls-gray-500);
}

.shelfpulls-brands-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 6), 1fr);
    gap: 12px;
}

.shelfpulls-brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border-radius: var(--shelfpulls-radius);
    box-shadow: var(--shelfpulls-shadow);
    text-decoration: none;
    transition: all 0.2s ease;
}

.shelfpulls-brand-tile:hover {
    background: var(--shelfpulls-primary);
}

.shelfpulls-brand-tile .brand-name {
    font-weight: 600;
    color: var(--shelfpulls-gray-700);
}

.shelfpulls-brand-tile:hover .brand-name {
    color: #fff;
}

.shelfpulls-hero {
    background: linear-gradient(135deg, var(--shelfpulls-primary) 0%, var(--shelfpulls-primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.shelfpulls-hero .hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px;
}

.shelfpulls-hero .hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin: 0 0 32px;
}

.shelfpulls-hero .hero-search {
    margin-bottom: 40px;
}

.shelfpulls-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.shelfpulls-hero .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shelfpulls-hero .stat-number {
    font-size: 36px;
    font-weight: 800;
}

.shelfpulls-hero .stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
    color: var(--shelfpulls-gray-800);
}

.section-header .view-all-link {
    color: var(--shelfpulls-primary);
    text-decoration: none;
    font-weight: 600;
}

.section-header .view-all-link:hover {
    text-decoration: underline;
}

.shelfpulls-deals-section,
.shelfpulls-categories-section,
.shelfpulls-brands-section,
.shelfpulls-info-section {
    padding: 60px 0;
}

.shelfpulls-deals-section:nth-child(even) {
    background: var(--shelfpulls-gray-50);
}

.shelfpulls-discount-sections {
    padding: 60px 0;
}

.shelfpulls-discount-sections .discount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.shelfpulls-discount-sections .discount-card {
    padding: 40px;
    border-radius: var(--shelfpulls-radius-lg);
    color: #fff;
}

.shelfpulls-discount-sections .discount-50 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.shelfpulls-discount-sections .discount-30 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.shelfpulls-discount-sections .discount-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    margin-bottom: 12px;
}

.shelfpulls-discount-sections .discount-card h3 {
    margin: 0 0 8px;
    font-size: 28px;
}

.shelfpulls-discount-sections .discount-card p {
    margin: 0 0 20px;
    opacity: 0.9;
}

.shelfpulls-info-section .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.shelfpulls-info-section .info-card {
    text-align: center;
    padding: 32px;
    background: #fff;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow);
}

.shelfpulls-info-section .info-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shelfpulls-primary);
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.shelfpulls-info-section .info-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.shelfpulls-info-section .info-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--shelfpulls-gray-800);
}

.shelfpulls-info-section .info-card p {
    margin: 0;
    color: var(--shelfpulls-gray-600);
    line-height: 1.6;
}

.shelfpulls-archive-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shelfpulls-filter-sidebar {
    background: #fff;
    padding: 24px;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.shelfpulls-filter-sidebar .filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--shelfpulls-gray-100);
}

.shelfpulls-filter-sidebar .filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shelfpulls-filter-sidebar h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--shelfpulls-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shelfpulls-filter-sidebar .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.shelfpulls-filter-sidebar .filter-list a {
    display: flex;
    justify-content: space-between;
    color: var(--shelfpulls-gray-600);
    text-decoration: none;
}

.shelfpulls-filter-sidebar .filter-list a:hover {
    color: var(--shelfpulls-primary);
}

.shelfpulls-filter-sidebar .filter-list .count {
    color: var(--shelfpulls-gray-400);
}

.shelfpulls-filter-sidebar .price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelfpulls-filter-sidebar .price-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--shelfpulls-gray-200);
    border-radius: var(--shelfpulls-radius);
}

.shelfpulls-filter-sidebar .filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--shelfpulls-gray-200);
    border-radius: var(--shelfpulls-radius);
}

.shelfpulls-filter-sidebar .filter-actions {
    display: flex;
    gap: 12px;
}

.shelfpulls-filter-sidebar .filter-actions .shelfpulls-button {
    flex: 1;
    padding: 10px;
}

.shelfpulls-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: var(--shelfpulls-radius);
    box-shadow: var(--shelfpulls-shadow);
    margin-bottom: 24px;
}

.shelfpulls-sort-bar .sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shelfpulls-sort-bar .sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--shelfpulls-gray-200);
    border-radius: var(--shelfpulls-radius);
}

.shelfpulls-sort-bar .view-options {
    display: flex;
    gap: 4px;
}

.shelfpulls-sort-bar .view-toggle {
    padding: 8px;
    background: var(--shelfpulls-gray-100);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--shelfpulls-gray-500);
}

.shelfpulls-sort-bar .view-toggle.active {
    background: var(--shelfpulls-primary);
    color: #fff;
}

.shelfpulls-pagination {
    margin-top: 40px;
    text-align: center;
}

.shelfpulls-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.shelfpulls-pagination li a,
.shelfpulls-pagination li span {
    display: block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--shelfpulls-gray-200);
    border-radius: var(--shelfpulls-radius);
    text-decoration: none;
    color: var(--shelfpulls-gray-700);
}

.shelfpulls-pagination li a:hover {
    background: var(--shelfpulls-gray-50);
}

.shelfpulls-pagination li .current {
    background: var(--shelfpulls-primary);
    border-color: var(--shelfpulls-primary);
    color: #fff;
}

.shelfpulls-no-results {
    text-align: center;
    padding: 80px 40px;
    background: var(--shelfpulls-gray-50);
    border-radius: var(--shelfpulls-radius-lg);
}

.shelfpulls-no-results .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--shelfpulls-gray-300);
    margin-bottom: 16px;
}

.shelfpulls-no-results h3 {
    margin: 0 0 8px;
    color: var(--shelfpulls-gray-700);
}

.shelfpulls-no-results p {
    margin: 0 0 24px;
    color: var(--shelfpulls-gray-500);
}

.shelfpulls-404-page {
    padding: 60px 0;
}

.shelfpulls-404-page .error-content {
    text-align: center;
    padding: 60px 0;
}

.shelfpulls-404-page .error-icon {
    margin-bottom: 24px;
}

.shelfpulls-404-page .error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--shelfpulls-gray-200);
    line-height: 1;
}

.shelfpulls-404-page h1 {
    margin: 0 0 12px;
    font-size: 36px;
    color: var(--shelfpulls-gray-800);
}

.shelfpulls-404-page .error-message {
    margin: 0 0 32px;
    font-size: 18px;
    color: var(--shelfpulls-gray-500);
}

.shelfpulls-404-page .error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.shelfpulls-404-page .error-search {
    max-width: 600px;
    margin: 0 auto;
}

.shelfpulls-404-page .error-suggestions,
.shelfpulls-404-page .error-categories {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--shelfpulls-gray-200);
}

.shelfpulls-404-page .error-suggestions h2,
.shelfpulls-404-page .error-categories h2 {
    text-align: center;
    margin-bottom: 32px;
}

.shelfpulls-single-product-page {
    padding: 20px 0 60px;
}

.shelfpulls-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.shelfpulls-product-gallery .main-image-container {
    position: relative;
    background: var(--shelfpulls-gray-100);
    border-radius: var(--shelfpulls-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.shelfpulls-product-gallery .main-image-container .discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--shelfpulls-danger);
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.shelfpulls-product-gallery .main-image {
    width: 100%;
    height: auto;
    display: block;
}

.shelfpulls-product-gallery .thumbnail-images {
    display: flex;
    gap: 12px;
}

.shelfpulls-product-gallery .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--shelfpulls-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.shelfpulls-product-gallery .thumbnail:hover,
.shelfpulls-product-gallery .thumbnail.active {
    border-color: var(--shelfpulls-primary);
}

.shelfpulls-product-info .product-brand {
    font-size: 14px;
    color: var(--shelfpulls-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.shelfpulls-product-info .product-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    color: var(--shelfpulls-gray-800);
}

.shelfpulls-product-info .product-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.shelfpulls-product-info .original-price {
    font-size: 18px;
    color: var(--shelfpulls-gray-400);
    text-decoration: line-through;
}

.shelfpulls-product-info .current-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--shelfpulls-gray-900);
}

.shelfpulls-product-info .savings {
    background: #fef2f2;
    color: var(--shelfpulls-danger);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--shelfpulls-radius);
}

.shelfpulls-product-info .product-meta-info {
    margin-bottom: 24px;
}

.shelfpulls-product-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shelfpulls-product-info .meta-label {
    font-weight: 600;
    color: var(--shelfpulls-gray-600);
}

.shelfpulls-product-info .best-offer-cta {
    background: var(--shelfpulls-gray-50);
    padding: 24px;
    border-radius: var(--shelfpulls-radius-lg);
    margin-bottom: 24px;
}

.shelfpulls-product-info .best-offer-info {
    margin-bottom: 16px;
}

.shelfpulls-product-info .best-price-label {
    display: block;
    font-size: 14px;
    color: var(--shelfpulls-gray-500);
    margin-bottom: 4px;
}

.shelfpulls-product-info .best-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--shelfpulls-gray-900);
}

.shelfpulls-product-info .shipping-info {
    font-size: 14px;
    color: var(--shelfpulls-gray-500);
    margin-left: 8px;
}

.shelfpulls-product-info .free-shipping {
    font-size: 14px;
    color: var(--shelfpulls-success);
    font-weight: 600;
    margin-left: 8px;
}

.shelfpulls-product-info .buy-now-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 32px;
    background: var(--shelfpulls-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--shelfpulls-radius);
    transition: background 0.2s ease;
}

.shelfpulls-product-info .buy-now-button:hover {
    background: var(--shelfpulls-primary-dark);
}

.shelfpulls-product-info .buy-now-button .seller-name {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.shelfpulls-product-info .product-description h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.shelfpulls-comparison-section,
.shelfpulls-related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--shelfpulls-gray-200);
}

.shelfpulls-comparison-section h2,
.shelfpulls-related-section h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.shelfpulls-comparison-section .comparison-subtitle {
    margin: 0 0 24px;
    color: var(--shelfpulls-gray-500);
}

@media (max-width: 1024px) {
    .shelfpulls-products-grid {
        --columns: 3 !important;
    }
    
    .shelfpulls-archive-content {
        grid-template-columns: 1fr;
    }
    
    .shelfpulls-filter-sidebar {
        position: static;
    }
    
    .shelfpulls-product-main {
        grid-template-columns: 1fr;
    }
    
    .shelfpulls-info-section .info-grid {
        grid-template-columns: 1fr;
    }
    
    .shelfpulls-discount-sections .discount-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .shelfpulls-products-grid {
        --columns: 2 !important;
    }
    
    .shelfpulls-categories-grid {
        --columns: 2 !important;
    }
    
    .shelfpulls-brands-grid {
        --columns: 3 !important;
    }
    
    .shelfpulls-hero .hero-title {
        font-size: 32px;
    }
    
    .shelfpulls-hero .hero-stats {
        gap: 30px;
    }
    
    .shelfpulls-search-filters {
        flex-direction: column;
    }
    
    .shelfpulls-sort-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .shelfpulls-404-page .error-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .shelfpulls-products-grid {
        --columns: 1 !important;
    }
    
    .shelfpulls-categories-grid {
        --columns: 1 !important;
    }
    
    .shelfpulls-brands-grid {
        --columns: 2 !important;
    }
    
    .shelfpulls-search-input-group {
        flex-direction: column;
    }
    
    .shelfpulls-product-info .current-price {
        font-size: 28px;
    }
}

.product-features {
    margin: 24px 0;
    padding: 20px;
    background: var(--shelfpulls-gray-50);
    border-radius: var(--shelfpulls-radius);
}

.product-features h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--shelfpulls-gray-800);
}

.feature-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-bullets li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--shelfpulls-gray-700);
    line-height: 1.5;
    border-bottom: 1px solid var(--shelfpulls-gray-200);
}

.feature-bullets li:last-child {
    border-bottom: none;
}

.feature-bullets li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--shelfpulls-success);
    font-weight: bold;
}

.prime-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #232f3e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    margin: 8px 0;
}

.prime-badge::before {
    content: "\2713";
    font-size: 10px;
}

.shelfpulls-amazon-related .product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shelfpulls-amazon-related .product-title {
    font-size: 14px;
    line-height: 1.4;
}

.shelfpulls-amazon-related .product-title a {
    color: var(--shelfpulls-gray-800);
    text-decoration: none;
}

.shelfpulls-amazon-related .product-title a:hover {
    color: var(--shelfpulls-primary);
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.product-badges .discount-badge,
.product-badges .sale-badge,
.product-badges .prime-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-badges .discount-badge {
    background: var(--shelfpulls-danger);
    color: #fff;
}

.product-badges .sale-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.product-badges .prime-badge {
    background: #232f3e;
    color: #fff;
    margin: 0;
}

.product-badges .prime-badge::before {
    content: none;
}

/* Inline offer badges - displayed above Buy Now button */
.offer-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--shelfpulls-gray-200);
}

.prime-badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #232f3e;
    border-radius: 4px;
}

.prime-badge-inline svg {
    display: block;
}

.deal-badge-inline {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #cc0c39 0%, #ff3366 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.discount-badge-inline {
    display: inline-block;
    padding: 4px 12px;
    background: var(--shelfpulls-danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.show-more-bullets {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--shelfpulls-primary);
    color: #fff;
    border: none;
    border-radius: var(--shelfpulls-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-more-bullets:hover {
    background: var(--shelfpulls-primary-dark);
}

.product-description {
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border-radius: var(--shelfpulls-radius-lg);
    border: 1px solid var(--shelfpulls-gray-200);
}

.product-description h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--shelfpulls-gray-800);
}

.description-content {
    color: var(--shelfpulls-gray-600);
    line-height: 1.7;
    font-size: 15px;
}

.description-content p {
    margin: 0 0 12px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.show-more-description {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--shelfpulls-primary);
    color: #fff;
    border: none;
    border-radius: var(--shelfpulls-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-more-description:hover {
    background: var(--shelfpulls-primary-dark);
}

.shelfpulls-brand-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shelfpulls-brand-page .brand-sidebar {
    background: #fff;
    padding: 24px;
    border-radius: var(--shelfpulls-radius-lg);
    box-shadow: var(--shelfpulls-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.shelfpulls-brand-page .brand-sidebar h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--shelfpulls-gray-800);
}

.shelfpulls-brand-page .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shelfpulls-brand-page .category-list li {
    margin-bottom: 8px;
}

.shelfpulls-brand-page .category-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--shelfpulls-gray-600);
    text-decoration: none;
    border-radius: var(--shelfpulls-radius);
    transition: all 0.2s ease;
}

.shelfpulls-brand-page .category-list a:hover,
.shelfpulls-brand-page .category-list a.active {
    background: var(--shelfpulls-gray-100);
    color: var(--shelfpulls-primary);
}

.shelfpulls-brand-page .category-list .count {
    color: var(--shelfpulls-gray-400);
    font-size: 13px;
}

.shelfpulls-brand-page .brand-content {
    flex: 1;
}

.shelfpulls-brand-page .brand-content h2 {
    margin: 0 0 24px;
    font-size: 24px;
}

@media (max-width: 1024px) {
    .shelfpulls-brand-page {
        grid-template-columns: 1fr;
    }
    
    .shelfpulls-brand-page .brand-sidebar {
        position: static;
    }
}
