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

:root {
    --primary-color: #ff4d4d;
    --secondary-color: #333;
    --background-color: #fff;
    --text-color: #333;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background-color);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

/* Add shop name */
.shop-name {
    display: inline-block;
    margin-left: 0.5rem;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    transition: var(--transition-speed);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    display: none;
    z-index: 1000;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-right: 1rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    z-index: 1000;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.mobile-menu .dropdown {
    width: 100%;
}

.mobile-menu .dropbtn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1.1rem;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.mobile-menu .dropdown-content {
    display: none;
    padding-left: 1rem;
    background: #f9f9f9;
}

.mobile-menu .dropdown-content a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.mobile-menu .dropdown.active .dropbtn {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

#closeCart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: all 0.3s ease;
}

#closeCart:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 0.5rem;
}

.remove-item:hover {
    color: #ff0000;
    transform: scale(1.05);
}

.remove-item i {
    font-size: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.quantity-controls button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.cart-total {
    padding: 1rem;
    border-top: 1px solid #eee;
    font-weight: bold;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
}

.cart-actions button {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#clearCart {
    background: #f44336;
    color: white;
}

#checkoutBtn {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Banner Slider */
.banner-slider {
    margin-top: 60px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slides {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}

.prev { left: 20px; }
.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .banner-slider {
        height: 300px;
        margin-top: 50px;
    }

    .slider-btn {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 0.75rem;
}

.product-info h3 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    color: var(--secondary-color);
}

.price {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .product-card img {
        height: 130px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-info h3 {
        font-size: 0.8rem;
    }

    .price {
        font-size: 0.8rem;
    }

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

    .product-buttons {
        padding: 0.25rem;
    }

    .cart-btn,
    .buy-btn {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer Styles Update */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: white;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p {
    margin: 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-link {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-color) !important;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-icon {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

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

.social-icon.instagram {
    background: #f09433;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tiktok {
    background: #000;
    position: relative;
}

.social-icon.tiktok::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #25F4EE, #FE2C55);
    border-image-slice: 1;
    border-radius: 50%;
}

.social-icon.whatsapp {
    background: #25D366;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

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

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

    .social-links {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-center {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }

    .search-container {
        width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .banner-slider {
        height: 300px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Slider Styles */
.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slide-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.slide-btn:hover {
    transform: scale(1.05);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Search Suggestions */
.search-suggestions {
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-category {
    color: #666;
    font-size: 0.9rem;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

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

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

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

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.product-info p {
    margin: 0 0 0.5rem 0;
}

.product-type {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: auto !important;
}

.product-card button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.product-card button:hover {
    background: #ff3333;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .product-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .product-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
        margin: 0 0 0.25rem 0;
        color: var(--secondary-color);
    }

    .price {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .original-price {
        text-decoration: line-through;
        color: #999;
        font-size: 0.8rem;
    }

    .product-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .cart-btn,
    .buy-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.8rem;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }

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

    .buy-btn {
        background: #f8f8f8;
        color: var(--secondary-color);
        border: 1px solid #ddd;
    }

    .cart-btn:hover,
    .buy-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .badge {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 500;
    }

    .badge.all {
        background: #9c27b0;
        color: white;
    }

    .badge.new {
        background: #4CAF50;
        color: white;
    }

    .badge.sale {
        background: var(--primary-color);
        color: white;
    }

    .badge.out-of-stock {
        background: #999;
        color: white;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 1.8rem;
    }

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

    .cart-item img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .quantity-controls {
        justify-content: center;
    }

    .remove-item {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
} 

/* Cart Buttons */
.clear-cart,
.checkout-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.clear-cart {
    background: #eee;
    color: var(--secondary-color);
}

.checkout-btn {
    background: var(--primary-color);
    color: white;
}

.clear-cart:hover {
    background: #ddd;
}

.checkout-btn:hover {
    background: #ff3333;
} 

/* Navbar Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
} 

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .nav-center {
        order: 3;
        width: 100%;
        padding: 0.5rem;
        display: none;
    }

    .nav-center.active {
        display: block;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--text-color);
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu .dropdown {
        width: 100%;
    }

    .mobile-menu .dropbtn {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu .dropdown-content {
        display: none;
        padding-left: 1rem;
        background: #f9f9f9;
    }

    .mobile-menu .dropdown.active .dropdown-content {
        display: block;
    }

    .hamburger {
        display: flex;
    }
} 

/* Make sure the button is clickable in the footer section */
.footer-section {
    position: relative;
    z-index: 1;
} 

/* Add to your existing styles */
.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
}

.product-info p {
    margin: 0 0 1rem 0;
} 

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.badge.new {
    background: #00c853;
}

.badge.sale {
    background: #ff3d00;
}

.badge.out-of-stock {
    background: #757575;
}

/* Product Buttons */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cart-btn, .buy-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.buy-btn {
    background: var(--secondary-color);
    color: white;
}

.cart-btn:hover, .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Update cart icon to shopping bag */
.cart-icon i {
    font-size: 1.2rem;
} 

/* Search Bar Styles */
.search-wrapper {
    width: 100%;
    background: #f5f5f5;
    padding: 1rem;
    margin-top: 60px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background: #f9f9f9;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.suggestion-price {
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-wrapper {
        padding: 0.5rem;
    }

    .search-container input {
        font-size: 0.9rem;
        padding: 0.5rem 2rem 0.5rem 1rem;
    }
} 

/* Categories Menu Styles */
.categories-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.categories-menu.active {
    display: block;
}

.categories-menu h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.categories-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-menu li {
    margin-bottom: 1rem;
}

.categories-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.categories-menu a:hover {
    color: var(--primary-color);
    background: #f5f5f5;
    border-radius: 4px;
}

/* Overlay for menu background */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.menu-overlay.active {
    display: block;
}

/* Product Grid Adjustments */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    max-width: 768px;
    margin: 0 auto;
}

.product-card {
    max-width: 100%;
    margin: 0;
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .categories-menu {
        width: 95%;
        padding: 1.5rem;
    }
} 

/* Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

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

@media (max-width: 768px) {
    .notification {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
} 

/* Back Button Styles */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

/* Admin Portal Button */
#adminPortalBtn {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#adminPortalBtn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Order Confirmation Styles */
.confirmation-container {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f5f5f5;
    margin-top: 60px;
}

.confirmation-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.confirmation-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.confirmation-actions {
    margin-top: 2rem;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 1rem;
    }

    .confirmation-card {
        margin: 1rem;
    }

    .back-btn {
        margin: 0.5rem;
    }
} 

/* Categories Menu Styles */
.categories-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

/* Admin Portal Button Style */
.admin-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 1rem;
}

.admin-portal-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.admin-portal-btn i {
    font-size: 1.1rem;
}

/* Mobile Product Grid */
@media (max-width: 768px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .product-card {
        margin: 0;
    }

    .product-card img {
        height: 150px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .product-info p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .product-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .cart-btn,
    .buy-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
} 

/* New Categories Menu Styles */
.shop-categories-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shop-categories-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

.menu-header h2 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 0;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
}

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

.menu-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.category-section {
    margin-bottom: 2rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-section h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 6px;
    background: #f8f8f8;
    transition: all 0.3s ease;
    text-align: center;
}

.category-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .shop-categories-menu {
        width: 95%;
        max-height: 85vh;
    }

    .category-links {
        grid-template-columns: 1fr;
    }

    .menu-content {
        padding: 1rem;
    }
}

/* Loading Animation Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

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

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    padding: 12px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: none;
    background: #f5f5f5;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #eee;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
}

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

/* Mobile Pagination Styles */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 16px 0;
        padding: 8px;
    }

    .pagination button {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
}