/* 10. Product Pages
-------------------------------------------------- */
.products-hero {
    min-height: 60vh; /* Taller for a more epic feel */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* Ensure pseudo-elements and animations are contained */
    /* New curved bottom */
    clip-path: ellipse(120% 100% at 50% 100%);
    animation: slowZoom 40s infinite alternate ease-in-out; /* Add background animation */
}

@keyframes slowZoom {
    from {
        background-size: 100% auto;
    }
    to {
        background-size: 110% auto;
    }
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* A more subtle, uniform overlay for the glass effect */
    background: rgba(0, 0, 0, 0.2);
}

.products-hero .hero-content {
    position: relative;
    z-index: 2;
    /* Glassmorphism effect removed */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 2.5rem 3.5rem;
    border: none;
    box-shadow: none;
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

.products-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.products-hero p.subtitle {
    color: #fff;
    font-size: 1.2rem;
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.products-grid-section {
    display: grid;
    grid-template-columns: 250px 1fr; /* Give sidebar a bit more space */
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    width: 100%;
}

.filters-sidebar {
    position: sticky;
    top: 100px; /* Header height + some space */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    box-shadow: 0 5px 20px var(--shadow-color-dark);
}

.filters-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Updated Filter Button Styles */
#category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-family: inherit;
}

.filter-btn:hover {
    background-color: var(--primary-brand);
    color: var(--card-bg);
}

.filter-btn.active {
    background-color: var(--primary-brand);
    color: var(--card-bg);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 0rem;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

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

.price-tag {
    position: absolute;
    bottom: 0rem;
    right: 1rem;
    transform: translateY(50%);
    background-color: #f4a261;
    color: rgb(0, 0, 0);
    padding: 0.5rem 1rem;
    border-radius: 90px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.product-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-details i {
    color: var(--primary-brand);
    width: 20px;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap; /* Prevent text from wrapping */
    min-width: 0; /* Allow flex shrinking */
}

.product-actions .secondary-btn {
    background-color: #f8f9fa;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.product-actions .secondary-btn:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.product-actions .primary-btn {
    background-color: var(--primary-brand);
    color: white;
}

.product-actions .primary-btn:hover {
    background-color: #1a4a5e;
    transform: translateY(-2px);
}

/* 11. Cart Functionality
-------------------------------------------------- */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cart Modal Styles */
#cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#cart-modal.active .cart-modal-content {
    transform: translateY(0);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-brand);
    color: white;
}

.cart-modal-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.cart-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cart-item-prefs {
    font-size: 0.8rem;
    color: var(--primary-brand);
    font-style: italic;
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
    text-align: right;
}

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

.cart-item-quantity button {
    background: var(--primary-brand);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

#cart-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

#clear-cart {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

#clear-cart:hover {
    background: #c82333;
}

.cart-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-page h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

#cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.cart-item-details p {
    margin: 0.25rem 0;
    color: var(--text-light);
}

.cart-item-prefs {
    font-size: 0.9rem;
    color: var(--primary-brand);
    font-style: italic;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
    text-align: right;
}

.cart-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.cart-total h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.cart-total .btn.primary-btn {
    background-color: var(--primary-brand);
}

.cart-total .btn {
    padding: 0.8rem 1.5rem;
    min-width: 200px;
    text-align: center;
}

#empty-cart-message {
    text-align: center;
    padding: 4rem 0;
}

#empty-cart-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 12. Product Detail Page
-------------------------------------------------- */
.product-detail-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(38, 70, 83, 0.6);
}

.product-detail-hero .hero-content {
    position: relative;
    z-index: 2;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.product-detail-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-detail-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-brand);
    margin-bottom: 2rem;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.care-info-section {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.care-info-section h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 2rem;
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.care-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-brand);
    background: rgba(38, 70, 83, 0.05);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    transition: transform 0.3s;
}

.care-item:hover {
    transform: translateX(5px);
}

.care-item h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.care-item h3 i {
    color: var(--primary-brand);
    width: 20px;
}

.care-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Success Message Animation */
@keyframes slideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1000px) {
    .products-hero {
        min-height: 40vh;
        padding: 1rem 1rem;
        clip-path: ellipse(150% 100% at 50% 100%);
        animation: none; /* Disable zoom on mobile */
        background-size: cover; /* Ensure image fills the container */
    }

    .products-hero h1 {
        font-size: clamp(2.5rem, 10vw, 3rem);
    }

    .products-hero p.subtitle {
        font-size: 1rem;
    }

    .products-grid-section {
        grid-template-columns: 1fr;
        padding: 0 2rem 2rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
        order: -1;
    }

    .filters-sidebar h3,
    .filters-sidebar h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item img {
        width: 100px;
        height: 100px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-info h1 {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .product-actions .btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

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

    .modal-content {
        margin: 1rem;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }

    /* Cart Modal Responsive */
    .cart-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .cart-modal-header {
        padding: 1rem;
    }

    .cart-modal-header h2 {
        font-size: 1.25rem;
    }

    .cart-modal-body {
        padding: 1rem;
        max-height: 300px;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .cart-item-details h3 {
        font-size: 0.9rem;
    }

    .cart-item-details p {
        font-size: 0.8rem;
    }

    .cart-item-price {
        min-width: auto;
        text-align: center;
    }

    .cart-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #cart-total {
        font-size: 1.1rem;
    }

    #clear-cart {
        width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .search-box-container {
        margin-bottom: 15px;
    }
    
    #search-box {
        padding: 10px 10px 10px 35px;
        font-size: 13px;
    }
    
    .search-box-container i {
        font-size: 12px;
        left: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .product-content h3 {
        font-size: 1.5rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .price-tag {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-brand);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(38, 70, 83, 0.05);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
}

.modal-details i {
    color: var(--primary-brand);
    width: 20px;
    text-align: center;
}

.modal-preferences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.preference-group {
    display: flex;
    flex-direction: column;
}

.preference-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.preference-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.modal-actions .btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px; /* Make buttons pill-shaped */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .secondary-btn {
    background-color: #fff; /* White background */
    color: var(--text-dark);
    border: 1px solid var(--border-color); /* Add border */
}

.modal-actions .secondary-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.modal-actions .primary-btn {
    background-color: var(--primary-brand);
    color: white;
    border: 1px solid var(--primary-brand);
}

.modal-actions .primary-btn:hover {
    background-color: #1a4a5e;
    border-color: #1a4a5e;
    transform: translateY(-2px);
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Search Box Styles */
.search-box-container {
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    z-index: 2;
}

#search-box {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

#search-box:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#search-box::placeholder {
    color: #999;
    font-style: italic;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 1000;
    font-size: 1rem;
    font-weight: 500;
}

.notification.show {
    bottom: 20px;
}

/* === Mini Modal for Preferences (Dark Mode Style) === */
.modal-content.mini-modal {
    max-width: 400px;
    background-color: #2c3e50; /* Dark background */
    color: #ecf0f1; /* Light text */
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid #34495e;
}

.mini-modal .modal-header {
    background-color: #34495e; /* Slightly lighter header */
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #4a6572;
}

.mini-modal .modal-title {
    font-size: 1.25rem;
    text-align: center;
    width: 100%;
    color: #fff;
}

.mini-modal .modal-body {
    padding: 1.5rem;
}

.mini-modal .modal-preferences {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.mini-modal .preference-group label {
    color: #bdc3c7; /* Lighter grey for labels */
}

.mini-modal .preference-group select {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background-color: #34495e;
    color: #ecf0f1;
    border: 1px solid #4a6572;
    border-radius: var(--border-radius-sm);
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23ecf0f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.mini-modal .preference-group select:focus {
    background-color: #2c3e50;
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.mini-modal .modal-actions {
    margin-top: 1.5rem;
}

.mini-modal .modal-actions .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    background: var(--primary-brand);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.mini-modal .modal-actions .btn:hover {
    background: #2a9d8f;
    box-shadow: 0 0 15px rgba(42, 157, 143, 0.6);
    transform: translateY(-2px);
} 