@font-face {
    font-family: 'CustomFont';
    src: url('assets/fonts/f.otf') format('opentype');
}
body {
    font-family: 'CustomFont', sans-serif;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    width: 100%;
    max-width: 1200px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid #f8a5c2;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #e66a93;
}

.product-image {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: #f6d2e8; /* Pink background that will show if image doesn't fill container */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' to zoom out images */
    transition: transform 0.5s ease;
    background-color: #f6d2e8; /* Pink background matching the theme */
}

.product-card:hover .product-image img {
    transform: scale(1.03); /* Reduced scale effect to avoid clipping */
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-name {
    color: #e66a93;
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    border-bottom: 1px dashed #f8d7e3;
    padding-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background-color: #f8d7e3;
    color: #e66a93;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.product-price {
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: #e66a93;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.product-button {
    background-color: #e66a93;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.product-button:hover {
    background-color: #d54b79;
}

/* Filter controls */
.filter-controls {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-button {
    background-color: white;
    border: 2px solid #f8a5c2;
    color: #e66a93;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.filter-button:hover, .filter-button.active {
    background-color: #e66a93;
    color: white;
}

/* Category badges with different colors */
.category-Bags {
    background-color: #d4f8e6;
    color: #3aad7a;
}

.category-Accessories {
    background-color: #d4e1f8;
    color: #3a6dad;
}

.category-Toys {
    background-color: #f8e8d4;
    color: #ad8a3a;
}

.category-Home {
    background-color: #e1d4f8;
    color: #6d3aad;
}

.category-Pets {
    background-color: #f8d4d4;
    color: #ad3a3a;
}

/* Search box */
.search-container {
    margin: 1rem auto;
    max-width: 500px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid #f8a5c2;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #e66a93;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #e66a93;
}

/* No products message */
.no-products {
    text-align: center;
    color: #e66a93;
    font-size: 1.2rem;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Loading animation */
.loading {
    text-align: center;
    color: #e66a93;
    font-size: 1.2rem;
    padding: 2rem;
    grid-column: 1 / -1;
}

.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .filter-controls {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 1rem auto;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-button {
        width: 80%;
        margin: 0.25rem 0;
    }
}

/* Navigation styling carried over from original */
nav {
    position: relative;
    padding: 0;
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.desktop-nav {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 245, 250, 0.95);
    padding: 0.8rem 0;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    max-width: 800px;
    border: 2px solid #f8a5c2;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    margin: 0 1.5rem;
}

.desktop-nav a {
    text-decoration: none;
    color: #e66a93;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.desktop-nav a:hover {
    background-color: #ffeef5;
    color: #d04477;
}

.hamburger-menu {
    cursor: pointer;
    display: none;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    width: fit-content;
    margin: 0 auto;
    border: 2px solid #f8a5c2;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 245, 250, 0.95);
        padding: 20px 0;
        list-style: none;
        margin: 0;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 99;
        border-radius: 0 0 15px 15px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        padding: 10px 20px;
        text-align: center;
    }
}

/* Section and card styles */
.welcome-section, .closing-section {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.intro-card, .outro-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #f8a5c2;
    line-height: 1.6;
}

.section-title {
    color: #e66a93;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed #f8d7e3;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.note {
    margin-top: 1.5rem;
    font-style: italic;
    color: #ac0000;
    font-size: 0.95rem;
    background-color: #ffeef5;
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

/* Cart Button Styling */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.product-button, .cart-button {
    background-color: #e66a93;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.cart-button {
    background-color: #2cffa0;
    background-image: linear-gradient(to bottom right, #3aad7a, #2d8a61);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 6px rgba(45, 138, 97, 0.2);
    font-family: inherit; /* Ensures it uses the same font */
}
    
.product-button:hover {
    background-color: #d54b79;
}

.cart-button:hover {
    background-color: #2d8a61;
}

/* Cute floating cart icon */
.floating-cart {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    border: 2px solid #f8a5c2;
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.05);
    border-color: #e66a93;
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e66a93;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Cart dropdown styling */
.cart-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    border: 2px solid #f8a5c2;
}

.cart-dropdown.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.cart-dropdown-header {
    padding: 1rem;
    border-bottom: 1px dashed #f8d7e3;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.cart-dropdown-title {
    color: #e66a93;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.cart-dropdown-items {
    padding: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.cart-dropdown-item {
    display: flex;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #f8d7e3;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.cart-dropdown-item:hover {
    background-color: #ffeef5;
}

.cart-dropdown-item-image {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 0.75rem;
    border: 2px solid #f8d7e3;
    transition: all 0.2s ease;
}

.cart-dropdown-item:hover .cart-dropdown-item-image {
    border-color: #e66a93;
}

.cart-dropdown-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.cart-dropdown-item-details {
    flex: 1;
}

.cart-dropdown-item-name {
    color: #e66a93;
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-price-qty {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.cart-dropdown-price {
    font-weight: bold;
    color: #3aad7a;
}

.cart-dropdown-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff0f5;
    transition: all 0.2s ease;
}

.cart-dropdown-remove:hover {
    background-color: #ff6b6b;
    color: white;
}

.cart-dropdown-footer {
    padding: 1rem;
    border-top: 1px dashed #f8d7e3;
    background: white;
    position: sticky;
    bottom: 0;
}

.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: bold;
}

.cart-dropdown-total-label {
    color: #666;
}

.cart-dropdown-total-value {
    color: #e66a93;
    font-size: 1.1rem;
}

.cart-dropdown-checkout {
    background-color: #3aad7a;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.cart-dropdown-checkout:hover {
    background-color: #2d8a61;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: #888;
}

/* Updated price display */
.product-price {
    color: #e66a93;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.75rem 0;
    text-align: center;
    display: block;
}

.category-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Notification styles */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: rgba(58, 173, 122, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.cart-notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-cart {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .cart-dropdown {
        width: 300px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .floating-cart {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .cart-dropdown {
        width: 280px;
        right: 5px;
    }
}

/* Updated Cart Button Styling */
.cart-button {
    background-color: #3aad7a;
    background-image: linear-gradient(to bottom right, #3aad7a, #2d8a61);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 6px rgba(45, 138, 97, 0.2);
    font-family: inherit; /* Ensures it uses the same font */
}

.cart-button:hover {
    background-image: linear-gradient(to bottom right, #3ab987, #2d8a61);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 138, 97, 0.3);
}

.cart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(45, 138, 97, 0.2);
}

/* Make product button match the style of cart button */
.product-button {
    background-color: #e66a93;
    background-image: linear-gradient(to bottom right, #e66a93, #d54b79);
    box-shadow: 0 2px 6px rgba(213, 75, 121, 0.2);
    transition: all 0.3s ease;
}

.product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(213, 75, 121, 0.3);
}

.product-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(213, 75, 121, 0.2);
}

/* Filter dropdown for mobile */
.filter-mobile-toggle {
    display: none;
    background-color: #f8a5c2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    margin: 1rem auto;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    width: 90%;
    max-width: 320px;
}

.filter-mobile-toggle::after {
    content: "▼";
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.filter-mobile-toggle.active::after {
    content: "▲";
}

@media (max-width: 768px) {
    .filter-mobile-toggle {
        display: block;
    }
    
    .filter-controls {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        padding: 0;
        margin: 0 auto;
        max-width: 320px;
    }
    
    .filter-controls.active {
        display: flex;
        flex-direction: column;
        max-height: 500px;
        padding: 1rem;
        background-color: rgba(255, 245, 250, 0.95);
        border-radius: 15px;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border: 2px solid #f8a5c2;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .filter-button {
        margin: 0.4rem 0;
        width: 100%;
        padding: 0.8rem;
    }
}