/* Universal Books - Landing Page Styles */

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-light: #f9fafb;
    --background-dark: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success-color: #10b981;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --text-muted: #9ca3af;
    --primary-color-rgb: 37, 99, 235;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Layout */
    --container-max-width: 1400px;
    --header-height: 80px;
    --announcement-height: 36px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease-out;
    transform: translateY(0);
    height: 36px;
    display: flex;
    align-items: center;
}

/* Add padding to body when announcement bar is present */
body.has-announcement {
    padding-top: 36px;
}

.announcement-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.announcement-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.phone-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
}

.phone-link:hover {
    color: white;
}

.dismiss-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismiss-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: top 0.3s ease;
}

/* Adjust header position when announcement bar is present */
body.has-announcement .header {
    top: 36px;
    /* Match announcement bar height */
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Navigation Left Group */
.nav-left-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.dropdown-container {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-trigger:hover {
    background-color: var(--background-light);
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.dropdown-menu.active,
.dropdown-trigger[aria-expanded="true"]+.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cart-link,
.wishlist-link {
    position: relative;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    color: var(--text-primary);
}

.cart-link:hover,
.wishlist-link:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    display: block;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.login-btn:hover {
    background: var(--primary-dark);
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: none;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-menu-trigger:hover {
    background-color: var(--background-light);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-size: 0.9rem;
}

.user-dropdown-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.user-dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.user-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.admin-link {
    color: #dc3545 !important;
    font-weight: 500;
}

.admin-link:hover {
    background-color: #fff5f5 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--background);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    /* Hide when closed to prevent focus issues */
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    backdrop-filter: blur(2px);
}

.mobile-menu.active+.mobile-menu-overlay,
body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: var(--spacing-xl);
    padding-bottom: var(--spacing-3xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    position: relative;
    z-index: 1002;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.mobile-menu-close:hover {
    color: var(--error-color);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
    padding-bottom: var(--spacing-xl);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
    text-decoration: none;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    background-color: var(--background-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-menu-item.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-login-btn {
    margin-top: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.mobile-menu-login-btn:hover {
    background: var(--primary-dark);
}

/* Responsive Header Styles */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: var(--spacing-sm);
    }

    .login-btn {
        display: none;
        /* Hide desktop login button on tablet/mobile */
    }

    .user-menu {
        display: none !important;
        /* Hide desktop user menu on tablet/mobile */
    }
}

@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .nav-container {
        height: 60px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 32px;
    }

    .nav-left-group {
        gap: var(--spacing-md);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    /* Changed from fixed height to min-height */
    height: auto;
    background: linear-gradient(135deg, var(--background-light), var(--background-dark));
    padding: var(--spacing-3xl) 0;
}

.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    /* Fluid typography */
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-visual {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Allow books to float slightly outside if needed */
}

.hero-books {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    perspective: 1000px;
}

.book-cover {
    position: absolute;
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform, opacity, width, height;
}

/* Center book (active) */
.book-cover.center {
    width: 420px;
    height: 300px;
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Left book (partially visible) */
.book-cover.left {
    width: 280px;
    height: 180px;
    z-index: 2;
    transform: translateX(-130px) scale(0.9);
    opacity: 0.7;
    clip-path: inset(0 66.67% 0 0);
}

/* Right book (partially visible) */
.book-cover.right {
    width: 280px;
    height: 180px;
    z-index: 2;
    transform: translateX(130px) scale(0.9);
    opacity: 0.7;
    clip-path: inset(0 0 0 66.67%);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-10px) scale(1.05);
}

.book-cover.center:hover {
    transform: translateX(0) translateY(-10px) scale(1.05);
}

.book-cover.left:hover {
    transform: translateX(-150px) translateY(-10px) scale(0.95);
}

.book-cover.right:hover {
    transform: translateX(150px) translateY(-10px) scale(0.95);
}

/* Trust Indicators */
.trust-indicators {
    margin-top: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trust-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Responsive Hero Adjustments */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero-text {
        order: 1;
        /* Text on top */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 2;
        /* Visual below text */
        height: 300px;
        margin-top: var(--spacing-md);
    }

    .hero-cta {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    /* Adjust book sizes for tablets */
    .book-cover.center {
        width: 320px;
        height: 220px;
    }

    .book-cover.left {
        transform: translateX(-100px) scale(0.9);
    }

    .book-cover.right {
        transform: translateX(100px) scale(0.9);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--spacing-sm) 0;
    }

    .hero-content {
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 1.125rem;
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: var(--spacing-xs);
    }

    .hero-visual {
        height: 160px;
    }

    .hero-books {
        height: 130px;
    }

    /* Adjust book sizes for very small mobile */
    .book-cover.center {
        width: 180px;
        height: 120px;
    }

    .book-cover.left {
        width: 140px;
        height: 100px;
        transform: translateX(-70px) scale(0.85);
    }

    .book-cover.right {
        width: 140px;
        height: 100px;
        transform: translateX(70px) scale(0.85);
    }

    .hero-cta {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 var(--spacing-xs);
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        flex: 1 1 45%;
        justify-content: center;
        padding: 8px 6px;
        font-size: 0.75rem;
        min-height: 34px;
        white-space: nowrap;
    }

    .btn-primary svg {
        width: 12px;
        height: 12px;
    }

    .trust-indicators {
        gap: 0.5rem;
        margin-top: var(--spacing-sm);
    }

    .trust-item {
        font-size: 0.65rem;
    }

    .trust-number {
        font-size: 0.9375rem;
    }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Genres Section */
.genres-section {
    padding: var(--spacing-3xl) 0;
    background: var(--background);
}

.genres-container {
    overflow-x: auto;
    padding: var(--spacing-md) 0;
}

.genres-scroll {
    display: flex;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    min-width: max-content;
}

.genre-chip {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.genre-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.genre-icon {
    font-size: 1.25rem;
}

/* Featured Books Preview */
.featured-preview {
    padding: var(--spacing-3xl) 0;
    background: var(--background-light);
}

.books-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Adjusted for mobile 2-col */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

/* Desktop view - responsive book grid */
@media (min-width: 1400px) {
    .books-preview-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .books-preview-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .books-preview-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .books-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .books-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .books-preview-grid {
        grid-template-columns: 1fr;
    }
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Adjusted for mobile 2-col */
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

/* Desktop view - 6 books per row for wishlist */
@media (min-width: 1400px) {
    .wishlist-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .wishlist-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: var(--spacing-sm);
    }
}

@media (max-width: 360px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .wishlist-grid .book-card {
        font-size: 0.9rem;
    }

    .wishlist-grid .book-title {
        font-size: 0.95rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wishlist-grid .book-author {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wishlist-grid .book-details {
        padding: var(--spacing-sm);
    }

    .wishlist-grid .book-price {
        font-size: 0.85rem;
    }
}

/* Wishlist items use the same book card style */
.wishlist-grid .book-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.wishlist-grid .book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.wishlist-grid .book-image-container {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.wishlist-grid .book-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.wishlist-grid .book-card:hover .book-full-image {
    transform: scale(1.05);
}

.wishlist-grid .btn-wishlist-overlay {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: white;
    opacity: 1;
}

.wishlist-grid .btn-wishlist-overlay:hover {
    background: var(--secondary-dark);
    transform: scale(1.1);
}

.wishlist-grid .book-details {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-grid .book-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-grid .book-author {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: auto;
    padding-bottom: var(--spacing-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-grid .btn-add-cart {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: auto;
}

.wishlist-grid .btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Book Price Overlay - Matching shop-styles.css */
.book-price-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(30, 41, 59, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
}

.price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.price-discounted {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
}

.price-original {
    font-size: 0.875rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.section-cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Minimalist CTA Button */
.cta-button-minimal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cta-button-minimal:hover {
    color: var(--primary-color);
}

.cta-button-minimal .cta-arrow {
    transition: transform 0.3s ease;
}

.cta-button-minimal:hover .cta-arrow {
    transform: translateY(3px);
}

/* Optional: Add subtle underline effect on hover */
.cta-button-minimal::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.cta-button-minimal:hover::after {
    transform: scaleX(1);
}

/* Newsletter Section */
.newsletter-section {
    padding: var(--spacing-3xl) 0;
    background: var(--text-primary);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: white;
}

.newsletter-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin-top: var(--spacing-md);
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.newsletter-privacy,
.footer-newsletter-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

/* Footer */
/* Footer */
.footer {
    background: rgba(128, 128, 128, 0.091);
    color: var(--text-primary);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        text-align: left;
        /* Reset text align */
    }

    .footer-section {
        padding: 0;
        flex: 1 1 45%;
        /* 2 columns */
        min-width: 140px;
    }

    /* Make the first section (logo/desc) full width */
    .footer-section:first-child {
        flex: 1 1 100%;
        margin-bottom: var(--spacing-sm);
        text-align: center;
    }

    .footer-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-xs);
    }

    .footer-description {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-md);
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
        margin-bottom: var(--spacing-sm);
    }

    .footer-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-xs);
    }

    .footer-title::after,
    .footer-subtitle::after {
        /* Keep left aligned for columns, center for first child */
        left: 0;
        transform: none;
    }

    .footer-section:first-child .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info p {
        justify-content: flex-start;
        font-size: 0.8rem;
    }

    .footer-links a {
        padding-left: 0;
        font-size: 0.85rem;
    }

    .footer-links a::before {
        display: none;
    }
}

.footer-section {
    padding: var(--spacing-md);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.social-link svg {
    transition: transform var(--transition-fast);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: var(--spacing-md);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition-fast);
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-lg);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Newsletter Section */
.footer-newsletter-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: white;
}

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

.newsletter-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-secondary);
}

/* Responsive Design */
/* Tablet and Mobile Responsive Design */
@media (max-width: 768px) {

    /* Hide desktop navigation */
    .nav-desktop {
        display: none;
    }

    /* Hide logo text on mobile, keep logo image */
    .logo-text {
        display: none;
    }

    /* Adjust left group spacing on mobile */
    .nav-left-group {
        gap: 0;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Adjust header actions */
    .header-actions {
        gap: var(--spacing-sm);
    }

    /* Hide login button in header on mobile (will be in menu) */
    .auth-btn {
        display: none;
    }

    /* Ensure cart and wishlist icons are properly sized - WCAG compliant touch targets */
    .cart-link,
    .wishlist-link {
        padding: var(--spacing-sm);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .cart-icon,
    .wishlist-link svg {
        width: 24px;
        height: 24px;
    }

    /* Adjust cart badge position for larger touch target */
    .cart-badge {
        position: absolute;
        top: 4px;
        right: 4px;
    }

    /* Mobile menu improvements */
    .mobile-menu {
        max-width: 90vw;
    }

    .mobile-menu-content {
        padding: var(--spacing-lg);
        padding-bottom: var(--spacing-2xl);
    }

    /* Mobile menu login button */
    .mobile-menu-login-btn {
        width: 100%;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        margin-top: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        position: sticky;
        bottom: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: background-color var(--transition-fast);
    }

    .mobile-menu-login-btn:hover {
        background: var(--primary-dark);
    }

    /* Hero adjustments - Compact for mobile */
    .hero-section {
        height: auto;
        padding: var(--spacing-md) 0;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.25rem;
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.8125rem;
        line-height: 1.35;
        padding: 0 var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
    }

    /* Hero CTA - very compact side-by-side buttons */
    .hero-cta {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin-bottom: var(--spacing-sm);
        padding: 0 var(--spacing-xs);
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 10px;
        font-size: 0.8125rem;
        flex: 1 1 45%;
        max-width: none;
        justify-content: center;
        min-height: 36px;
        border-radius: var(--radius-md);
    }

    .btn-primary svg {
        width: 14px;
        height: 14px;
    }

    .hero-visual {
        height: 180px;
        margin-top: var(--spacing-sm);
    }

    .hero-books {
        height: 150px;
    }

    /* Mobile slideshow adjustments - more compact */
    .book-cover.center {
        width: 200px;
        height: 130px;
    }

    .book-cover.left {
        width: 160px;
        height: 110px;
        transform: translateX(-90px) scale(0.85);
    }

    .book-cover.right {
        width: 160px;
        height: 110px;
        transform: translateX(90px) scale(0.85);
    }

    .book-cover img {
        border-radius: var(--radius-md);
    }

    /* Trust indicators - compact 3 in one row */
    .trust-indicators {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-xs);
        flex-wrap: nowrap;
        margin-top: var(--spacing-md);
    }

    .trust-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
        font-size: 0.7rem;
        flex: 1;
        min-width: 0;
    }

    .trust-number {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
    }

    .trust-item span:not(.trust-number) {
        line-height: 1.3;
        font-size: 0.75rem;
        font-weight: 500;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    /* Books grid - 2 books per row on mobile */
    .books-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .books-preview-grid .book-card {
        font-size: 0.85rem;
    }

    .books-preview-grid .book-title {
        font-size: 0.875rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .books-preview-grid .book-author {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .books-preview-grid .book-details {
        padding: var(--spacing-xs);
    }

    .books-preview-grid .book-price {
        font-size: 0.8rem;
    }

    .books-preview-grid .price-discounted,
    .books-preview-grid .price-current {
        font-size: 0.85rem;
    }

    .books-preview-grid .price-original {
        font-size: 0.7rem;
    }

    .books-preview-grid .rating-text {
        font-size: 0.65rem;
    }

    .books-preview-grid .stars {
        font-size: 0.75rem;
    }

    .books-preview-grid .book-actions button {
        width: 32px;
        height: 32px;
        padding: var(--spacing-xs);
    }

    .books-preview-grid .book-actions svg {
        width: 14px;
        height: 14px;
    }

    /* More spacing between action buttons */
    .books-preview-grid .book-actions {
        gap: var(--spacing-xs);
    }

    /* Newsletter form */
    .form-group {
        flex-direction: column;
    }

    .newsletter-input {
        margin-bottom: var(--spacing-sm);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .newsletter-submit {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    /* Footer - 2x2 grid layout (2 sections per row) */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-section {
        font-size: 0.875rem;
    }

    .footer-title {
        font-size: 1.125rem;
    }

    .footer-subtitle {
        font-size: 1rem;
    }

    .footer-links {
        font-size: 0.875rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }

    .announcement-content {
        padding: 0 var(--spacing-xs);
    }

    .nav-container {
        padding: 0 var(--spacing-xs);
    }

    .hero-content {
        padding: 0 var(--spacing-xs);
    }

    .slide-title {
        font-size: 1.5rem;
    }

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

    .trust-number {
        font-size: 1.5rem;
    }

    .genres-scroll {
        gap: var(--spacing-sm);
    }

    .genre-chip {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Extra Small Devices (iPhone SE, small phones) */
@media (max-width: 375px) {
    .mobile-menu {
        max-width: 95vw;
    }

    .mobile-menu-content {
        padding: var(--spacing-md);
    }

    /* Header improvements for very small devices */
    .header-actions {
        gap: var(--spacing-xs);
    }

    .logo-img {
        height: 32px;
    }

    .nav-container {
        padding: 0 var(--spacing-xs);
        height: 56px;
    }

    /* Trust indicators on very small devices */
    .trust-item span:not(.trust-number) {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .trust-number {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay {
    animation-delay: 0.2s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

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

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

.text-right {
    text-align: right;
}

/* Book Actions Overlay */
.book-actions {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.book-card:hover .book-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action.wishlist-active {
    background: var(--primary-color);
    color: white;
}


/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 280px;
    min-width: 180px;
    width: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.info {
    background: var(--info-color);
}

/* Standard Clear All Button Styling */
.clear-all-btn,
.clear-filters-btn,
.clear-cart-btn,
.clear-wishlist-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.clear-all-btn:hover,
.clear-filters-btn:hover,
.clear-cart-btn:hover,
.clear-wishlist-btn:hover {
    background: var(--primary-color);
    color: white;
}

.clear-all-btn:disabled,
.clear-filters-btn:disabled,
.clear-cart-btn:disabled,
.clear-wishlist-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    color: var(--text-muted);
    border-color: var(--text-muted);
}