/* ===== WISHLIST PAGE STYLES - SCALED DOWN 20% ===== */
:root {
    --primary: #3498DB;
    --primary-dark: #2980B9;
    --primary-light: #5DADE2;
    --secondary: #2C3E50;
    --light: #F8F9FA;
    --dark: #2C3E50;
    --gray: #7F8C8D;
    --bg: #F8F9FA;
    --bg2: #E9ECEF;
    --panel: #ffffff;
    --panel2: #FDFDFE;
    --text: #2C3E50;
    --muted: #7F8C8D;
    --line: rgba(44, 62, 80, 0.1);
    --line2: rgba(127, 140, 141, 0.08);
    --shadow: rgba(44, 62, 80, 0.08);
    --shadow-hover: rgba(52, 152, 219, 0.15);
    --success: #2ECC71;
    --danger: #E74C3C;
    --danger-light: #FF6B6B;
    --warning: #F39C12;
    --border: rgba(52, 152, 219, 0.15);
    --radius: 10px;          /* was 12px */
    --radius-sm: 6px;        /* was 8px */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main container */
.wishlist-main-container {
    max-width: 1200px;       /* was 1400px */
    margin: 0 auto;
    padding: 32px 16px;      /* was 40px 20px */
    position: relative;
}

/* Header with animation */
.wishlist-header {
    margin-bottom: 32px;     /* was 40px */
    text-align: center;
    animation: slideDown 0.8s ease-out;
}

.wishlist-title {
    font-size: 34px;         /* was 42px */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;     /* was 15px */
    background: linear-gradient(135deg, var(--primary, #3498DB) 0%, var(--primary-light, #5DADE2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(52, 152, 219, 0.1);
    position: relative;
    display: inline-block;
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}

.wishlist-subtitle {
    color: var(--muted, #7F8C8D);
    font-size: 14px;         /* was 18px */
    max-width: 480px;        /* was 600px */
    margin: 16px auto 0;     /* was 20px auto 0 */
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.wishlist-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;                /* was 10px */
    background: linear-gradient(135deg, var(--primary, #3498DB) 0%, var(--primary-dark, #2980B9) 100%);
    color: white;
    font-size: 11px;         /* was 14px */
    font-weight: 700;
    padding: 6px 16px;       /* was 8px 20px */
    border-radius: 16px;     /* was 20px */
    margin-left: 12px;       /* was 15px */
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3); /* scaled shadow */
    position: relative;
    overflow: hidden;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Wishlist summary */
.wishlist-summary {
    display: flex;
    justify-content: space-between; /* replaces fixed gap */
    margin-bottom: 32px;      /* was 40px */
    padding: 20px;            /* was 25px */
    background: var(--panel, #ffffff);
    border-radius: var(--radius);
    border: 1px solid var(--line, rgba(44, 62, 80, 0.1));
    box-shadow: 0 8px 24px var(--shadow, rgba(44, 62, 80, 0.08)); /* scaled */
    animation: slideUp 0.8s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.wishlist-summary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary, #3498DB), var(--danger, #E74C3C));
    animation: gradientMove 3s infinite;
}

@keyframes gradientMove {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;                /* was 8px */
    position: relative;
    padding-left: 12px;      /* was 15px */
}

.summary-item:first-child::before {
    content: '♥';
    position: absolute;
    left: -5px;
    top: 0;
    color: var(--danger, #E74C3C);
    font-size: 16px;         /* was 20px */
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--danger-light, #FF6B6B); }
}

.summary-label {
    font-size: 13px;         /* was 16px */
    color: var(--muted, #7F8C8D);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 22px;         /* was 28px */
    font-weight: 800;
    color: var(--primary, #3498DB);
    transition: var(--transition);
}

.summary-value:hover {
    transform: scale(1.05);
    color: var(--primary-dark, #2980B9);
}

/* Products grid - SMALLER CARDS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;               /* was 20px */
    margin-bottom: 48px;     /* was 60px */
}

.product-card {
    background: var(--panel, #ffffff);
    border: 1px solid var(--line, rgba(44, 62, 80, 0.1));
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px var(--shadow, rgba(44, 62, 80, 0.08)); /* scaled */
    animation: fadeInUp 0.6s ease backwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);  /* was -8px */
    border-color: var(--primary, #3498DB);
    box-shadow: 0 16px 32px var(--shadow-hover, rgba(52, 152, 219, 0.15)); /* scaled */
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 50%, rgba(231, 76, 60, 0.03) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-header {
    position: absolute;
    top: 8px;                /* was 10px */
    right: 8px;              /* was 10px */
    z-index: 10;
}

/* Enhanced remove button with red animation */
.btn-remove-wishlist {
    background: rgba(231, 76, 60, 0.9);
    border: none;
    color: white;
    width: 32px;             /* was 36px */
    height: 32px;            /* was 36px */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3); /* scaled */
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-size: 12px;         /* was 14px */
}

.btn-remove-wishlist::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-remove-wishlist:hover {
    background: var(--danger, #E74C3C);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 16px rgba(231, 76, 60, 0.4); /* scaled */
}

.btn-remove-wishlist:hover::before {
    width: 64px;             /* was 80px */
    height: 64px;            /* was 80px */
}

.btn-remove-wishlist i {
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.btn-remove-wishlist:hover i {
    transform: scale(1.1);
}

/* Product image with overlay - SMALLER HEIGHT */
.product-image {
    width: 100%;
    height: 144px;            /* was 180px */
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.02));
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(231, 76, 60, 0.1));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product info - COMPACT PADDING */
.product-info {
    padding: 12px;            /* was 15px */
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary, #3498DB), var(--danger, #E74C3C), var(--primary, #3498DB));
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

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

.product-title {
    font-size: 13px;         /* was 16px */
    font-weight: 700;
    color: var(--text, #2C3E50);
    margin-bottom: 5px;      /* was 6px */
    line-height: 1.3;
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;        /* scaled from 42px */
}

.product-card:hover .product-title {
    color: var(--primary, #3498DB);
}

.product-brand {
    font-size: 10px;         /* was 12px */
    color: var(--muted, #7F8C8D);
    margin-bottom: 6px;      /* was 8px */
    display: flex;
    align-items: center;
    gap: 3px;                /* was 4px */
}

.product-price {
    font-size: 16px;         /* was 20px */
    font-weight: 800;
    color: var(--primary, #3498DB);
    margin-bottom: 10px;     /* was 12px */
    text-shadow: 0 2px 8px rgba(52, 152, 219, 0.2); /* scaled */
    transition: var(--transition-fast);
}

.product-card:hover .product-price {
    transform: scale(1.05);
    color: var(--primary-dark, #2980B9);
}

.product-description {
    color: var(--muted, #7F8C8D);
    font-size: 10px;         /* was 12px */
    line-height: 1.5;
    margin-bottom: 10px;     /* was 12px */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;        /* scaled from 36px */
}

/* Product actions with enhanced buttons - COMPACT */
.product-actions {
    display: flex;
    gap: 6px;                /* was 8px */
    margin-bottom: 10px;     /* was 12px */
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    padding: 6px 8px;        /* was 8px 10px */
    border-radius: 5px;      /* was 6px */
    font-size: 10px;         /* was 12px */
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;                /* was 4px */
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-outline {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    color: var(--primary, #3498DB);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1));
    border-color: rgba(52, 152, 219, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.2); /* scaled */
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary, #3498DB), var(--primary-dark, #2980B9));
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3); /* scaled */
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark, #2980B9), var(--primary, #3498DB));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4); /* scaled */
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary i {
    transition: var(--transition-fast);
    font-size: 10px;         /* was 12px */
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Product meta with red accent - COMPACT */
.product-meta {
    font-size: 9px;          /* was 11px */
    color: var(--muted, #7F8C8D);
    display: flex;
    align-items: center;
    gap: 5px;                /* was 6px */
    padding-top: 8px;        /* was 10px */
    border-top: 1px solid var(--line, rgba(44, 62, 80, 0.1));
    position: relative;
}

.product-meta i {
    font-size: 10px;         /* was 12px */
    transition: var(--transition-fast);
}

.product-meta i.fa-heart {
    color: var(--danger, #E74C3C);
    animation: heartbeat 2s ease-in-out infinite;
}

.product-card:hover .product-meta i.fa-eye {
    color: var(--primary, #3498DB);
    transform: scale(1.2);
}

/* Empty state with animation */
.empty-state {
    text-align: center;
    padding: 64px 16px;      /* was 80px 20px */
    background: var(--panel, #ffffff);
    border-radius: var(--radius);
    border: 2px dashed var(--line, rgba(44, 62, 80, 0.1));
    margin: 32px 0;          /* was 40px 0 */
    box-shadow: 0 8px 24px var(--shadow, rgba(44, 62, 80, 0.08)); /* scaled */
    animation: fadeInUp 0.8s ease-out;
}

.empty-icon {
    font-size: 64px;         /* was 80px */
    margin-bottom: 24px;     /* was 30px */
    color: var(--danger, #E74C3C);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }  /* was -10px */
}

.empty-state h3 {
    font-size: 22px;         /* was 28px */
    margin-bottom: 12px;     /* was 15px */
    color: var(--text, #2C3E50);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.empty-state p {
    color: var(--muted, #7F8C8D);
    font-size: 14px;         /* was 18px */
    max-width: 400px;        /* was 500px */
    margin: 0 auto 24px;     /* was 30px */
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.browse-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;                /* was 10px */
    padding: 13px 26px;      /* was 16px 32px */
    background: linear-gradient(135deg, var(--primary, #3498DB) 0%, var(--primary-dark, #2980B9) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 13px;         /* was 16px */
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3); /* scaled */
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.browse-products-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.browse-products-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark, #2980B9), var(--primary, #3498DB));
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(52, 152, 219, 0.4); /* scaled */
}

.browse-products-btn:hover::before {
    left: 100%;
}

.browse-products-btn i {
    transition: var(--transition-fast);
}

.browse-products-btn:hover i {
    transform: translateX(5px);
}

/* Categories Section */
.categories-section {
    background: var(--panel2, #FDFDFE);
    padding: 48px 16px;      /* was 60px 20px */
    margin-top: 32px;        /* was 40px */
    border-radius: var(--radius);
    border: 1px solid var(--line, rgba(44, 62, 80, 0.1));
    box-shadow: 0 8px 24px var(--shadow, rgba(44, 62, 80, 0.08)); /* scaled */
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.categories-container {
    max-width: 1200px;       /* was 1400px */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 26px;         /* was 32px */
    font-weight: 800;
    color: var(--text, #2C3E50);
    margin-bottom: 32px;     /* was 40px */
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;            /* was -10px */
    left: 50%;
    transform: translateX(-50%);
    width: 32px;             /* was 40px */
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #3498DB), var(--danger, #E74C3C));
    border-radius: 3px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* was 200px */
    gap: 16px;               /* was 20px */
}

.category-card {
    background: var(--panel, #ffffff);
    border-radius: var(--radius);
    padding: 16px;           /* was 20px */
    text-align: center;
    border: 1px solid var(--line, rgba(44, 62, 80, 0.1));
    transition: var(--transition);
    text-decoration: none;
    color: var(--text, #2C3E50);
    box-shadow: 0 4px 12px var(--shadow, rgba(44, 62, 80, 0.08)); /* scaled */
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary, #3498DB), var(--danger, #E74C3C));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-4px);  /* was -5px */
    box-shadow: 0 12px 24px var(--shadow-hover, rgba(52, 152, 219, 0.15)); /* scaled */
    border-color: var(--primary, #3498DB);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-icon {
    font-size: 26px;         /* was 32px */
    color: var(--primary, #3498DB);
    margin-bottom: 10px;     /* was 12px */
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    color: var(--danger, #E74C3C);
}

.category-name {
    font-size: 13px;         /* was 16px */
    font-weight: 600;
    margin-bottom: 4px;      /* was 5px */
    color: var(--text, #2C3E50);
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.category-card:hover .category-name {
    color: var(--primary, #3498DB);
}

.category-count {
    font-size: 11px;         /* was 13px */
    color: var(--muted, #7F8C8D);
    position: relative;
    z-index: 2;
}

/* Footer Stats */
.footer-stats {
    background: linear-gradient(135deg, var(--primary, #3498DB), var(--primary-dark, #2980B9));
    color: white;
    padding: 48px 16px;      /* was 60px 20px */
    margin-top: 48px;        /* was 60px */
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.footer-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-container {
    max-width: 1200px;       /* was 1400px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* was 200px */
    gap: 24px;               /* was 30px */
    position: relative;
    z-index: 2;
}

.footer-stat {
    text-align: center;
    padding: 16px;           /* was 20px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.footer-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.footer-stat:hover {
    transform: translateY(-4px);  /* was -5px */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* scaled */
}

.footer-stat:hover::before {
    opacity: 1;
}

.footer-stat-number {
    font-size: 29px;         /* was 36px */
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 6px;      /* was 8px */
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3); /* scaled */
    transition: var(--transition);
}

.footer-stat:hover .footer-stat-number {
    transform: scale(1.1);
    color: var(--danger-light, #FF6B6B);
}

.footer-stat-label {
    font-size: 11px;         /* was 14px */
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced animations - unchanged */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== ENHANCED MOBILE RESPONSIVENESS - 2 COLUMNS ON ALL PHONES ===== */
/* All media queries remain unchanged – they will automatically work with the scaled base sizes */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .wishlist-main-container {
        padding: 28px 15px;  /* adjusted proportionally */
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;           /* was 18px */
    }
}

/* Tablets */
@media (max-width: 992px) {
    .wishlist-main-container {
        padding: 24px 14px;
    }
    
    .wishlist-title {
        font-size: 30px;     /* scaled from 36px */
    }
    
    .wishlist-subtitle {
        font-size: 15px;     /* scaled */
    }
    
    .wishlist-summary {
        padding: 18px;       /* scaled from 20px */
    }
    
    .summary-value {
        font-size: 20px;     /* scaled from 24px */
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .product-image {
        height: 130px;       /* scaled from 160px */
    }
    
    .product-title {
        font-size: 13px;     /* scaled */
        min-height: 33px;    /* scaled */
    }
    
    .product-price {
        font-size: 15px;     /* scaled */
    }
    
    .product-actions .btn {
        padding: 5px 7px;    /* scaled */
        font-size: 9px;      /* scaled */
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* Small tablets and large phones - 2 COLUMNS */
@media (max-width: 768px) {
    .wishlist-main-container {
        padding: 20px 12px;
    }
    
    .wishlist-title {
        font-size: 24px;     /* scaled from 28px */
    }
    
    .wishlist-count-badge {
        font-size: 10px;     /* scaled */
        padding: 5px 13px;   /* scaled */
    }
    
    .wishlist-subtitle {
        font-size: 13px;     /* scaled */
    }
    
    .wishlist-summary {
        padding: 15px;       /* scaled */
    }
    
    .summary-label {
        font-size: 12px;     /* scaled */
    }
    
    .summary-value {
        font-size: 18px;     /* scaled */
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .product-card-header {
        top: 6px;            /* scaled */
        right: 6px;
    }
    
    .btn-remove-wishlist {
        width: 28px;         /* scaled */
        height: 28px;
        font-size: 10px;
    }
    
    .product-image {
        height: 120px;       /* scaled from 150px */
    }
    
    .product-info {
        padding: 10px 8px;   /* scaled */
    }
    
    .product-title {
        font-size: 12px;     /* scaled */
        min-height: 31px;    /* scaled */
    }
    
    .product-brand {
        font-size: 9px;      /* scaled */
    }
    
    .product-price {
        font-size: 14px;     /* scaled */
    }
    
    .product-description {
        font-size: 9px;      /* scaled */
        min-height: 27px;    /* scaled */
    }
    
    .product-actions .btn {
        padding: 5px 3px;    /* scaled */
        font-size: 8px;      /* scaled */
        gap: 2px;
    }
    
    .btn i {
        font-size: 8px;      /* scaled */
    }
    
    .product-meta {
        font-size: 8px;      /* scaled */
    }
    
    .product-meta i {
        font-size: 8px;      /* scaled */
    }
    
    .categories-section {
        padding: 32px 12px;  /* scaled */
    }
    
    .section-title {
        font-size: 22px;     /* scaled */
    }
    
    .categories-grid {
        gap: 12px;
    }
    
    .category-card {
        padding: 14px 10px;  /* scaled */
    }
    
    .category-icon {
        font-size: 22px;     /* scaled */
    }
    
    .category-name {
        font-size: 12px;     /* scaled */
    }
    
    .category-count {
        font-size: 10px;     /* scaled */
    }
    
    .footer-stats {
        padding: 32px 12px;  /* scaled */
    }
    
    .stats-container {
        gap: 12px;
    }
    
    .footer-stat {
        padding: 12px;       /* scaled */
    }
    
    .footer-stat-number {
        font-size: 22px;     /* scaled */
    }
    
    .footer-stat-label {
        font-size: 10px;     /* scaled */
    }
    
    .empty-state {
        padding: 40px 12px;  /* scaled */
    }
    
    .empty-icon {
        font-size: 48px;     /* scaled */
    }
    
    .empty-state h3 {
        font-size: 18px;     /* scaled */
    }
    
    .empty-state p {
        font-size: 12px;     /* scaled */
    }
    
    .browse-products-btn {
        padding: 11px 20px;  /* scaled */
        font-size: 12px;     /* scaled */
    }
}

/* Small phones - STILL 2 COLUMNS */
@media (max-width: 576px) {
    .wishlist-main-container {
        padding: 16px 10px;
    }
    
    .wishlist-title {
        font-size: 20px;     /* scaled */
    }
    
    .wishlist-subtitle {
        font-size: 12px;
    }
    
    .wishlist-summary {
        padding: 12px;
    }
    
    .summary-item:first-child::before {
        font-size: 14px;     /* scaled */
    }
    
    .summary-value {
        font-size: 16px;     /* scaled */
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .product-image {
        height: 105px;       /* scaled from 130px */
    }
    
    .product-info {
        padding: 8px 6px;    /* scaled */
    }
    
    .product-title {
        font-size: 11px;     /* scaled */
        min-height: 28px;    /* scaled */
    }
    
    .product-brand {
        font-size: 8px;
    }
    
    .product-price {
        font-size: 13px;     /* scaled */
    }
    
    .product-description {
        font-size: 8px;      /* scaled */
        min-height: 24px;    /* scaled */
    }
    
    .product-actions {
        gap: 4px;
    }
    
    .product-actions .btn {
        padding: 4px 2px;
        font-size: 7px;      /* scaled */
    }
    
    .product-meta {
        font-size: 7px;      /* scaled */
    }
    
    .categories-grid {
        gap: 10px;
    }
    
    .category-card {
        padding: 12px 8px;   /* scaled */
    }
    
    .category-icon {
        font-size: 20px;     /* scaled */
    }
    
    .category-name {
        font-size: 11px;     /* scaled */
    }
    
    .stats-container {
        gap: 10px;
    }
    
    .footer-stat-number {
        font-size: 20px;     /* scaled */
    }
    
    .footer-stat-label {
        font-size: 9px;      /* scaled */
    }
}

/* Very small phones (320px and below) - STILL 2 COLUMNS */
@media (max-width: 360px) {
    .wishlist-main-container {
        padding: 12px 6px;
    }
    
    .wishlist-title {
        font-size: 18px;     /* scaled from 22px */
    }
    
    .wishlist-count-badge {
        font-size: 9px;      /* scaled */
        padding: 4px 10px;   /* scaled */
    }
    
    .wishlist-subtitle {
        font-size: 11px;
    }
    
    .wishlist-summary {
        padding: 10px;
    }
    
    .summary-value {
        font-size: 15px;     /* scaled from 18px */
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;            /* was 8px */
    }
    
    .product-image {
        height: 90px;        /* scaled from 110px */
    }
    
    .product-info {
        padding: 6px 5px;    /* scaled */
    }
    
    .product-title {
        font-size: 10px;     /* scaled from 12px */
        min-height: 26px;    /* scaled */
    }
    
    .product-brand {
        font-size: 7px;
    }
    
    .product-price {
        font-size: 12px;     /* scaled from 14px */
    }
    
    .product-description {
        font-size: 7px;      /* scaled */
        min-height: 21px;    /* scaled */
    }
    
    .product-actions .btn {
        font-size: 6px;      /* scaled */
    }
    
    .product-meta {
        font-size: 6px;      /* scaled */
    }
    
    .categories-grid {
        gap: 6px;
    }
    
    .category-icon {
        font-size: 18px;     /* scaled from 22px */
    }
    
    .category-name {
        font-size: 10px;     /* scaled */
    }
    
    .stats-container {
        gap: 6px;
    }
    
    .footer-stat-number {
        font-size: 18px;     /* scaled from 22px */
    }
    
    .footer-stat-label {
        font-size: 8px;      /* scaled */
    }
}

/* Landscape orientation for phones - 3 COLUMNS IN LANDSCAPE */
@media (max-width: 900px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;           /* scaled */
    }
    
    .product-image {
        height: 115px;       /* scaled from 140px */
    }
    
    .product-info {
        padding: 10px 8px;   /* scaled */
    }
    
    .product-title {
        font-size: 12px;     /* scaled */
        min-height: 31px;    /* scaled */
    }
    
    .wishlist-summary {
        gap: 25px;           /* scaled */
    }
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 768px) {
    .btn-remove-wishlist,
    .product-actions .btn,
    .browse-products-btn,
    .category-card {
        min-height: 36px;    /* scaled from 40px */
    }
    
    .btn-remove-wishlist {
        min-width: 36px;     /* scaled from 40px */
    }
}

/* High-resolution screens */
@media (min-width: 1400px) {
    .wishlist-main-container {
        padding: 40px 25px;  /* scaled from 50px 30px */
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;           /* scaled from 25px */
    }
    
    .product-image {
        height: 160px;       /* scaled from 200px */
    }
}

/* Print styles */
@media print {
    .btn-remove-wishlist,
    .product-actions,
    .browse-products-btn,
    .categories-section,
    .footer-stats {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
