﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

    /*search in nav bar */

.btn-offwhite {
    background-color: #FAFAFA; 
    color: #333; 
    border: 1px solid #E0E0E0;
    padding: 10px 24px;
    border-radius: 30px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease; 
}

    .btn-offwhite:hover {
        background-color: #F0F0F0; 
        color: #333;
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
        text-decoration: none;
    }

    .btn-offwhite:active {
        transform: scale(0.98); 
    }

    .btn-offwhite i {
        margin-right: 8px; 
        color: #333; 
    }
.search-input {
    max-width: 160px;
    background-color: #f2f2f2;
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
}

.search-button {
    background-color: #a277a6;
    color: white;
    border-radius: 0 20px 20px 0;
}
.card {
    background-color: #FFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin: 0 auto;
}

/* ==== Cart Page Styles ==== */
.cart-container {
    max-width: 900px;
    margin: auto;
    padding: 2.5rem;
    border-radius: 20px;
/*    box-shadow: 0 0 20px rgba(0,0,0,0.03);*/
}

.cart-item {
    background-color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.item-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-info p {
    font-size: 0.95rem;
    color: #777;
    margin: 0.2rem 0;
}

.delete-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-color: #fff0f0;
    color: #e74c3c;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .delete-btn:hover {
        background-color: #e74c3c;
        color: white;
    }


.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-color: #f5f4fa;
    color: #7B61FF;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

    .qty-btn:hover{
        background-color: #7B61FF;
        color: white;
    }

.qty-display {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0.75rem;
}

.cart-summary {
    margin-top: 2rem;
    text-align: right;
}

    .cart-summary h4 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }


.btn-outline-secondary {
    border: none;
    color: black;
    padding: 10px 25px;
    font-weight: 500;
    background-color: transparent;
    transition: all 0.3s ease;
}

    .btn-outline-secondary:hover {
        background-color: #f3f0ff;
        color:black;
    }

/*Home Page*/
body {
    background-color: #f4f6f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Shipping Banner */
.shipping-banner {
    background: linear-gradient(135deg, #7B61FF 0%, #5a9bd5 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(123, 97, 255, 0.2);
    animation: pulseBanner 2s infinite;
}

@keyframes pulseBanner {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/homepage-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: white;
    padding: 0.75rem 2rem;
    color:blue;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(123, 97, 255, 0.3);
    }

/* Categories Section */
.categories-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.category-btn {
    background-color: #f8f9fa;
    color: #7B61FF;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #7B61FF;
    display: flex;
    align-items: center;
}

    .category-btn:hover {
        background-color: #7B61FF;
        color: white;
        transform: translateY(-2px);
    }

.view-all {
    background: transparent;
    border-style: dashed;
}

/* Featured Products */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.badge {
    position: absolute;
    top: -15px;
    right: -30px;
    background: #FF4757;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transform: rotate(15deg);
}

.product-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 1rem 0;
}

.product-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF4757;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-price {
    color: #7B61FF;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Carousel Arrows */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: #7B61FF;
}

/* Responsive Design */
@@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .shipping-banner {
        font-size: 0.9rem;
    }

    .product-card {
        flex: 0 0 240px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 300px;
    }

    .categories-list {
        flex-direction: column;
    }

    .category-btn {
        justify-content: center;
    }
}

/* Rest of your existing CSS remains the same */
.carousel-wrapper {
    position: relative;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .product-carousel::-webkit-scrollbar {
        display: none;
    }

.product-card {
    min-width: 260px;
    max-width: 260px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

.product-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.product-body {
    padding: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.product-desc {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

.product-price {
    font-weight: bold;
    color: #7B61FF;
    margin-top: 0.5rem;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    color: #7B61FF;
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}

.add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 2rem;
    font-weight: bold;
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-card {
        min-width: 85%;
    }
}


/*Product Index Page*/

/* Base styles */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: #7B61FF;
        ;
    }

    .product-card .card-img-top {
        padding: 15px;
    }

    .product-card:hover .product-image {
        transform: scale(1.05);
    }

.card-body {
    padding: 1.25rem;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hover-shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .hover-shadow:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

.transition-all {
    transition: all 0.3s ease;
}

/* Admin controls */
.admin-controls .btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card-wrapper:hover .admin-controls .btn {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .product-card {
        max-width: 100%;
    }
}


/*Category page style*/
.category-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    background-color: #f3f0ff;
    border-radius: 20px;
}

    .category-page-container h2 {
        color: #7B61FF;
        font-size: 2.25rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 2rem;
    }

.category-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(123, 97, 255, 0.15);
    }

    .category-card .card-img-top {
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #f8f9fa;
        border-radius: 12px;
    }

        .category-card .card-img-top img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.3s ease;
        }

    .category-card:hover .card-img-top img {
        transform: scale(1.05);
    }

    .category-card .card-body {
        padding: 1rem 0;
        flex-grow: 1;
    }

    .category-card .card-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1B1B1B;
        margin-bottom: 0.5rem;
    }

    .category-card .card-text {
        font-size: 0.875rem;
        color: #777;
        line-height: 1.5;
    }

    .btn-purple {
        background-color: #7B61FF;
        color: white;
        border-radius: 30px;
        padding: 12px 28px;
        font-weight: 500;
        border: none;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

        .btn-purple:hover {
            background-color: #684DDF;
            transform: scale(1.05);
        }

    .category-card .card-footer {
        background: transparent;
        border-top: none;
        padding: 1rem 0;
        position: relative;
    }

    .category-card .btn-edit,
    .category-card .btn-delete {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        position: absolute;
        margin: 0.5rem;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .category-card .btn-edit {
        bottom: 0;
        right: 0; /* Bottom-right corner */
    }

        .category-card .btn-edit i {
            color: #7B61FF;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .category-card .btn-edit:hover {
            background-color: #7B61FF;
            box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
        }

            .category-card .btn-edit:hover i {
                color: #f5f4fa;
            }

        .category-card .btn-edit:active {
            background-color: #f5f4fa;
            box-shadow: 0 2px 10px rgba(123, 97, 255, 0.4);
            transform: scale(0.95);
            border: 2px solid #7B61FF;
        }

            .category-card .btn-edit:active i {
                color: #684DDF;
                transform: scale(0.95);
            }

    .category-card .btn-delete {
        bottom: 0;
        left: 0;
        background-color: #ffffff;
    }

        .category-card .btn-delete i {
            color: #e74c3c;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .category-card .btn-delete:hover {
            background-color: #e74c3c;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        }

            .category-card .btn-delete:hover i {
                color: #fff0f0;
            }

        .category-card .btn-delete:active {
            background-color: #fff0f0;
            box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
            transform: scale(0.95);
            border: 2px solid #e74c3c;
        }

            .category-card .btn-delete:active i {
                color: #c0392b;
                transform: scale(0.95);
            }

@media (max-width: 768px) {
    .category-card .card-img-top {
        height: 150px;
    }

    .category-card .card-title {
        font-size: 1.125rem;
    }

    .category-card .btn-purple {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .category-page-container h2 {
        font-size: 1.75rem;
    }

    .category-card .card-img-top {
        height: 120px;
    }
}

/*Login*/
.login-page {
    background: #f4f6f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

    .login-page .login-box {
        background: white;
        padding: 3rem 2.5rem;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(123, 97, 255, 0.15);
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }

        .login-page .login-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #7B61FF 0%, #cba6f7 100%);
        }

    .login-page .login-title {
        font-size: 2.2rem;
        font-weight: 700;
        background: linear-gradient(135deg, #7B61FF 0%, #cba6f7 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-align: center;
        margin-bottom: 2rem;
    }

    .login-page .form-label {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.5rem;
    }

    .login-page .form-control {
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        padding: 0.75rem 1.25rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .login-page .form-control:focus {
            border-color: #7B61FF;
            box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.2);
        }

    .login-page .btn-login {
        background: linear-gradient(135deg, #7B61FF 0%, #cba6f7 100%);
        color: white;
        border: none;
        border-radius: 50px;
        width: 100%;
        padding: 1rem;
        font-weight: 700;
        transition: all 0.3s ease;
    }

        .login-page .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(123, 97, 255, 0.35);
        }

    /* Password-specific styles */
    .login-page .input-group {
        position: relative;
    }

    .login-page .password-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #cbd5e0;
        transition: all 0.3s ease;
    }

    /* Error messages scoped to login page */
    .login-page .text-danger {
        color: #FF4757;
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }

@media (max-width: 480px) {
    .login-page .login-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .login-page .login-title {
        font-size: 1.8rem;
    }
}
.register-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .register-link:hover {
        color: #7B61FF;
        text-decoration: none;
    }

