/* ========================================
   CSS Variables and Root Configuration
   ======================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #22c55e;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
    --light-gray: #f8f9fa;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ========================================
   Global Styles and Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    direction: rtl;
    background-color: var(--light-bg);
}

/* ========================================
   Global Link Styles
   ======================================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Form and Input Styles
   ======================================== */
input {
    @apply block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6 px-3;
}

ul.errorlist {
    @apply list-disc list-inside;
}

.rtl-flip {
    transform: scaleX(-1);
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.chrome-store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.chrome-store-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

.chrome-store-button i {
    font-size: 1rem;
}

/* ========================================
   Card Styles
   ======================================== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Header Styles
   ======================================== */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    border-bottom: 1px solid #F0F2F5;
    padding: 0.75rem 2.5rem;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #141414;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #141414;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    color: #2563eb;
}

.logo-img {
    width: 2rem;
    height: 2rem;
}

.logo-title {
    color: #2663eb;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    color: #2663eb;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: #050a16;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Header Search Styles */
.header-search {
    max-width: 280px;
    margin: 0;
}

.header-search-form {
    width: 100%;
}

.header-search-container {
    display: flex;
    position: relative;
    width: 100%;
}

.header-search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    font-size: 0.9rem;
    background: white;
    transition: var(--transition);
    min-width: 0;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.header-search-input::placeholder {
    color: #9ca3af;
}

.header-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.header-search-btn:hover {
    background: var(--secondary-color);
}

.header-search-btn i {
    font-size: 0.9rem;
}

/* ========================================
   Footer Styles
   ======================================== */
.footer-main {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-company {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.footer-description {
    color: #4b5563;
    margin-bottom: 1rem;
    max-width: 28rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-direction: row-reverse;
}

.social-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #6b7280;
}

.social-icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* ========================================
   Hero Section Styles
   ======================================== */
.hero-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 2rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 6rem 2rem 4rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Landing page specific hero styles */
.landing-hero {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.landing-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.landing-hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

/* ========================================
   Breadcrumb Styles
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    color: rgba(255,255,255,0.6);
    content: ">";
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ========================================
   Content Layout Styles
   ======================================== */
.content-section {
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto 2rem;
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: 42% 55%;
    gap: 2rem;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ========================================
   Statistics Section Styles
   ======================================== */
.stats {
    margin-top: 5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ========================================
   Features Section Styles
   ======================================== */
.features {
    padding: 8rem 2rem 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.feature-description {
    color: #64748b;
    font-size: 1.1rem;
}

/* ========================================
   Screenshots Section Styles
   ======================================== */
.screenshots {
    padding: 6rem 2rem;
    background: white;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
    transition: var(--transition);
}

.screenshot-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.screenshot-item:hover .screenshot-img {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.screenshot-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.screenshot-description {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ========================================
   Product Browser Styles
   ======================================== */
.products-browser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Search Section Styles */
.search-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.search-input-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.clear-search {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--accent-color);
    background: #f8f9fa;
    text-decoration: none;
}

/* Results Summary Styles */
.results-summary {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.results-count {
    font-size: 1.1rem;
    color: var(--text-color);
}

.results-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.results-info {
    color: #64748b;
    font-size: 0.9rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
}

.pagination-page:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.pagination-page.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pagination-ellipsis {
    color: #64748b;
    padding: 0 0.5rem;
    font-weight: 500;
}

/* Use the same product-card structure as holiday compare for consistency */
.products-browser-grid .product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products-browser-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Product card header styling for product browser */
.products-browser-grid .product-card-header {
    display: flex;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.products-browser-grid .product-card-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.products-browser-grid .product-card-image-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.products-browser-grid .product-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-browser-grid .product-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.products-browser-grid .product-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.products-browser-grid .product-card-title a:hover {
    text-decoration: underline;
}

.products-browser-grid .product-card-notes {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.products-browser-grid .product-quantity {

    font-size: 0.8rem;
    font-weight: 500;
}

/* Product card prices styling for product browser */
.products-browser-grid .product-card-prices {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.products-browser-grid .store-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.products-browser-grid .store-price-item:hover {
    background: #e9ecef;
}



.products-browser-grid .store-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.products-browser-grid .store-logo-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.products-browser-grid .store-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.products-browser-grid .price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-browser-grid .regular-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.products-browser-grid .more-product-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    background: white;
}

.products-browser-grid .more-product-link:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
    text-decoration: none;
}

.products-browser-grid .more-product-link i {
    font-size: 1rem;
}

.product-browser-cta {
    margin-top: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-controls .quantity-input {
    width: 60px;
    flex-shrink: 0;
}

.cart-controls .add-to-cart-btn {
    flex: 1;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-controls .add-to-cart-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-products i {
    color: #ddd;
    margin-bottom: 1rem;
}


.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.cart-overlay.show {
    display: block;
}

.cart-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    transition: var(--transition);
}

.cart-toggle:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    background: white;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-card.unavailable {
    opacity: 0.7;
    background: #f9f9f9;
    border-color: #ddd;
}

.product-card.unavailable:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-details {
    flex: 1;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.price-info {
    text-align: center;
    margin-bottom: 0.5rem;
}

.lowest-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price-count {
    font-size: 0.9rem;
    color: #666;
}

.add-to-cart-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.add-to-cart-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

.availability-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.availability-status.available {
    background: #dcfce7;
    color: #166534;
}

.availability-status.unavailable {
    background: #fee2e2;
    color: #dc2626;
}

.quantity-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 8px;
}

.quantity-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   Product Detail Styles
   ======================================== */
.product-details-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.product-image {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.company-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.company-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.company-details {
    flex: 1;
    min-width: 0;
}

.company-price-section {
    text-align: left;
    flex-shrink: 0;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    background-color: #fafbfc;
    text-decoration: none;
    color: inherit;
}

.company-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.company-card .company-link {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.company-card:hover .company-link {
    color: var(--primary-color);
}

.company-logo {
    max-height: 40px;
    max-width: 100px;
    transition: transform 0.2s ease;
}

.company-card:hover .company-logo {
    transform: scale(1.05);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.company-card:hover .price-display {
    color: #1d4ed8;
}

.promo-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.company-card:hover .promo-tag {
    transform: scale(1.05);
}

.discount-tag {
    background-color: #fee2e2;
    color: #b91c1c;
}

.special-price-tag {
    background-color: #d1fae5;
    color: #047857;
}

.chart-container {
    height: 400px;
    margin-top: 1rem;
}

/* ========================================
   Cart Compare Styles
   ======================================== */
.cart-header {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.summary-card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.summary-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.store-comparison {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.store-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.store-card:hover {
    transform: translateY(-2px);
}

.store-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-details {
    flex: 1;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.store-coverage {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0.25rem 0 0 0;
}

.store-total {
    text-align: left;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.savings-badge {
    background: #51bf79;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;

    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.best-price-badge {
    background: #22c55e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

/* ========================================
   Table Styles
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tr:hover {
    background-color: #f8f9fa;
}

.table-success {
    background-color: #d1fae5 !important;
}

.best-price {
    background-color: #d1fae5;
}

.highlight-savings {
    background-color: #fef3c7;
}

.missing-product {
    background-color: #fee2e2;
    color: #b91c1c;
}

.promo-price {
    color: #b91c1c;
    font-weight: bold;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 90;
}

.table-responsive {
    overflow-x: auto;
    max-height: 80vh;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.products-table th,
.products-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.products-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary-color);
}

.product-name {
    font-weight: 600;
    min-width: 200px;
}

/* ========================================
   Bundle/Holiday Compare Styles
   ======================================== */
.bundles {
    margin-top: -3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bundle-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.bundle-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.bundle-image-placeholder {
    height: 200px;
    width: 100%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bundle-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bundle-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.bundle-description {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.bundle-items {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.bundle-cta {
    margin-top: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* ========================================
   Legal/TOS/Privacy Styles
   ======================================== */
.tos-content,
.policy-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    line-height: 1.8;
    color: #1f2937;
}

.tos-content h2,
.policy-content h2 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tos-content h3,
.policy-content h3 {
    color: #1f2937;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.tos-content p,
.policy-content p {
    margin-bottom: 1rem;
}

.tos-content ul,
.tos-content ol,
.policy-content ul {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.tos-content li,
.policy-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Toggle Switch Styles
   ======================================== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(-26px);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   Extension Popup Styles
   ======================================== */
.extension-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 1000;
    max-width: 320px;
    display: none;
    animation: slideIn 0.5s ease-out;
}

.extension-popup.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.extension-popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.extension-popup-header img {
    width: 32px;
    height: 32px;
    margin-left: 12px;
}

.extension-popup-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.extension-popup-content {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.extension-popup-cta {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.extension-popup-cta:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.extension-popup-cta i {
    margin-left: 8px;
}

.extension-popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.extension-popup-close:hover {
    color: var(--text-color);
}

/* ========================================
   Loading and Animation Styles
   ======================================== */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-danger {
    color: #b91c1c;
}

.text-muted {
    color: #6b7280;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-success {
    background-color: #22c55e;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    color: white;
}

.feature-description {
    color: #64748b;
    font-size: 1.1rem;
}

.screenshots {
    padding: 6rem 2rem;
    background: white;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
    transition: var(--transition);
}

.screenshot-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.screenshot-item:hover .screenshot-img {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.screenshot-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.screenshot-description {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 300px;
    margin: 0 auto;
}

.stores {
    padding: 6rem 2rem;
    background: var(--light-bg);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    align-items: center;
}

.store-logo {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.store-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.testimonials {
    padding: 6rem 2rem;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 1rem;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-title {
    color: #64748b;
    font-size: 0.9rem;
}

.cta {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}


.footer-main {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-company {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.footer-description {
    color: #4b5563;
    margin-bottom: 1rem;
    max-width: 28rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-direction: row-reverse;
}

.social-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #6b7280;
}

.social-icon {
    height: 1.5rem;
    width: 1.5rem;
}

.footer-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #111827;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.footer-meta {
    margin-top: 1rem;
}

.footer-meta-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.card-body {
    padding: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tr:hover {
    background-color: #f8f9fa;
}

.table-success {
    background-color: #d1fae5 !important;
}

.best-price {
    background-color: #d1fae5;
}

.highlight-savings {
    background-color: #fef3c7;
}

.missing-product {
    background-color: #fee2e2;
    color: #b91c1c;
}

.promo-price {
    color: #b91c1c;
    font-weight: bold;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 90;
}

.table-responsive {
    overflow-x: auto;
    max-height: 80vh;
}

.product-name {
    min-width: 200px;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.product-details {
    flex: 1;
}



.product-details-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.product-image {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .product-details-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-image {
        align-self: center;
        max-width: 150px;
    }
}

.company-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.company-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.company-details {
    flex: 1;
    min-width: 0;
}

.company-price-section {
    text-align: left;
    flex-shrink: 0;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    background-color: #fafbfc;
    text-decoration: none;
    color: inherit;
}

.company-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.company-card .company-link {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.company-card:hover .company-link {
    color: var(--primary-color);
}

.company-logo {
    max-height: 40px;
    max-width: 100px;
    transition: transform 0.2s ease;
}

.company-card:hover .company-logo {
    transform: scale(1.05);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.company-card:hover .price-display {
    color: #1d4ed8;
}

.promo-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.company-card:hover .promo-tag {
    transform: scale(1.05);
}

.discount-tag {
    background-color: #fee2e2;
    color: #b91c1c;
}

.special-price-tag {
    background-color: #d1fae5;
    color: #047857;
}

.chart-container {
    height: 400px;
    margin-top: 1rem;
}
  /* Global card styles */
  .card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.card-body {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .company-card {
        padding: 0.75rem !important;
    }
    
    .company-card:hover {
        transform: translateY(-1px);
    }

    .company-card-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .company-info {
        justify-content: flex-start;
    }

    .company-price-section {
        text-align: center;
    }

    .company-price-section > div {
        justify-content: center !important;
    }

    .company-price-section p {
        text-align: center !important;
    }
}



.company-logo {
    max-height: 30px;
    max-width: 100px;
}

.text-start {
    text-align: right !important;
}

.text-end {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    color: white;
}

.bg-success {
    background-color: #22c55e;
}

.text-danger {
    color: #b91c1c;
}

.text-muted {
    color: #6b7280;
}

@media (max-width: 768px) {
    .table {
        min-width: 800px;
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .footer-container {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-company {
        grid-column: span 2;
    }

    .footer-bottom-content {
        flex-direction: row;
    }

    .footer-meta {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 3rem 2rem;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .content-section {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 0.5rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .header-container {
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .header-nav {
        gap: 1rem;
    }
    
    /* Header Right Mobile Styles */
    .header-right {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 0.75rem;
    }
    
    .header-search {
        max-width: none;
        width: 100%;
    }
    
    .header-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.4rem 0.75rem;
    }
    
    .header-search-btn {
        padding: 0.4rem 0.6rem;
    }
    
    .header-search-btn i {
        font-size: 0.8rem;
    }
    
    .chrome-store-button {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .landing-hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .left-column,
    .right-column {
        gap: 1rem !important;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .card-body {
        padding: 1rem;
    }

    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .extension-popup {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        max-width: none !important;
    }

    .product-details-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-image {
        align-self: center;
        max-width: 150px;
    }

    .company-card {
        padding: 0.75rem !important;
    }
    
    .company-card:hover {
        transform: translateY(-1px);
    }

    .company-card-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .company-info {
        justify-content: flex-start;
    }

    .company-price-section {
        text-align: center;
    }

    .company-price-section > div {
        justify-content: center !important;
    }

    .company-price-section p {
        text-align: center !important;
    }

    .table {
        min-width: 800px;
    }
}

@media (max-width: 640px) {
    main {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ========================================
   Holiday Compare Section Styles
   ======================================== */
.summary-section,
.products-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.summary-header,
.products-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
}

.summary-header h2,
.products-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.summary-section .table-responsive {
    padding: 0;
}

/* ========================================
   Holiday Compare Product Cards Styles
   ======================================== */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding:1rem;
}

.product-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.product-card-image {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-card-image-placeholder {
    height: 150px;
    width: 150px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card-info {
    flex: 1;
}

.product-card-title {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.product-card-title a:hover {
    text-decoration: underline;
}

.product-card-notes {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.product-quantity {

    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #374151;
}

.product-card-prices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.store-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: transparent;
    transition: all 0.2s ease;
    min-width: 140px;
    flex: 0 0 auto;
}

.store-price-item.best-price-highlight {

    position: relative;
}

.store-price-item.best-price-highlight::before {
    content: "המחיר הטוב ביותר";
    position: absolute;
    top: -8px;
    right: 12px;
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}



.store-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.store-logo-small {
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.store-name {
    font-weight: 500;
}

.original-price {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.9rem;
}

.discounted-price {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1rem;
}

.regular-price {
    font-weight: 600;
    font-size: 1.1rem;
}




/* Update existing product-card styles for holiday compare */
.holiday-compare .product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.holiday-compare .product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.holiday-compare .price-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.holiday-compare .savings-badge {
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}



.more-product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 140px;
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.more-product-link:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.more-product-link i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}



/* Mobile styles for holiday compare product cards */
@media (max-width: 768px) {
    .products-grid {
        gap: 15px;
    }
    
    .holiday-compare .product-card {
        padding: 15px;
    }
    
    .product-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-card-image,
    .product-card-image-placeholder {
        width: 60px;
        height: 60px;
        align-self: center;
    }
    
    .product-card-prices {
        flex-direction: column;
        gap: 8px;
    }
    
    .store-price-item {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        padding: 10px;
    }
    
    .store-info {
        flex-direction: row;
        margin-bottom: 0;
        gap: 8px;
    }
    
    .holiday-compare .price-info {
        text-align: right;
        align-items: flex-end;
    }
    
    .more-product-link {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        gap: 8px;
    }
    
    .more-product-link i {
        margin-bottom: 0;
    }
    
    /* Product Browser Mobile Styles */
    .search-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-input-container {
        max-width: none;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .results-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .pagination-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
    
    .pagination-pages {
        margin: 0 0.25rem;
        gap: 0.125rem;
    }
    
    .pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .products-browser-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-browser-grid .product-card-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .products-browser-grid .product-card-image,
    .products-browser-grid .product-card-image-placeholder {
        width: 80px;
        height: 80px;
        align-self: center;
    }
    
    .products-browser-grid .product-card-prices {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    
    .products-browser-grid .store-price-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 0.5rem;
    }
    
    .products-browser-grid .store-info {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .products-browser-grid .store-logo-small {
        width: 24px;
        height: 24px;
    }
    
    .product-browser-cta {
        padding: 1rem;
    }
    
    .cart-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-controls .quantity-input {
        width: 100%;
    }
} 