:root {
    --primary-color: #FF69B4;
    --secondary-color: #f06292;
    --footer-dark-pink: #c2185b;
    --footer-light-pink: #FF69B4;
    --background-color: #f9fafb;
    --text-color: #374151;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --navbar-bg: #ffffff;
    --navbar-hover-bg: #e5e7eb;
    --navbar-border: #e5e7eb;
    --welcome-bg: linear-gradient(135deg, #f9fafb, #e5e7eb);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Welcome Bar */
.welcome-bar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--primary-color);
    padding: 8px 15px;
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.welcome-bar .welcome-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    position: relative;
}

.welcome-bar .welcome-text {
    font-size: 0.85rem;
    font-weight: 400;
    color: white;
}

.welcome-bar .welcome-links a,
.welcome-bar .cart-link a {
    font-size: 0.8rem;
    font-weight: 400;
    color: white;
    text-decoration: none;
    margin: 0 8px;
    transition: var(--transition);
    position: relative;
    border-radius:10px !important;
}

.welcome-bar .welcome-links a:hover,
.welcome-bar .cart-link a:hover {
    color: #ad1457;
    text-decoration: none;
}

.welcome-bar .welcome-links a::after,
.welcome-bar .cart-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: white;
    transition: var(--transition);
    transform: translateX(-50%);
}

.welcome-bar .welcome-links a:hover::after,
.welcome-bar .cart-link a:hover::after {
    width: 80%;
}

.welcome-bar .cart-link {
    position: relative;
}

.welcome-bar .cart-link .cart-icon {
    font-size: 1rem;
    vertical-align: middle;
}

.welcome-bar .cart-link .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 500;
    display: none;
}

.welcome-bar .cart-link .cart-count.show {
    display: inline-block;
}

.welcome-bar .cart-link:hover .cart-dropdown {
    display: block;
    transform: translateY(0);
}

.welcome-bar .cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid var(--navbar-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    padding: 1.5rem;
    transform: translateY(10px);
    transition: var(--transition);
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    border-bottom: 1px solid var(--navbar-border);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 60px;
    transition: var(--transition);
    border-radius: 8px;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-radius: 8px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    box-shadow: none;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link.login-btn,
.navbar-nav .nav-link.register-btn {
    display: none;
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    color: var(--text-color);
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
    transition: var(--transition);
}

.cart-count.show {
    display: inline-block;
}

.navbar .cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid var(--navbar-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    padding: 1.5rem;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .cart-dropdown {
    display: block;
    transform: translateY(0);
}

.cart-dropdown .cart-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--navbar-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.cart-dropdown .cart-item:hover {
    background: var(--navbar-hover-bg);
    border-radius: 8px;
}

.cart-dropdown .cart-item:last-child {
    border-bottom: none;
}

.cart-dropdown .cart-total {
    font-weight: 600;
    padding: 0.75rem;
    text-align: right;
}

.cart-dropdown .btn {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.cart-dropdown .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cart-dropdown .btn-primary:hover {
    background: #ad1457;
    border-color: #ad1457;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: var(--primary-color);
    border-radius: 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero Buttons Above Hero Section */
.hero-buttons {
    padding: 1rem 0;
}

.hero-buttons .btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.hero-buttons .btn-hero.login-btn {
    background: var(--primary-color);
    color: #ffffff;
}

.hero-buttons .btn-hero.register-btn {
    background: var(--footer-dark-pink);
    color: #ffffff;
}

.hero-buttons .btn-hero:hover {
    background: #ad1457;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background: url('slide1.png') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-hero {
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-hero.login-btn {
    background: var(--primary-color);
}

.btn-hero.register-btn {
    background: var(--footer-dark-pink);
}

.btn-hero:hover {
    background: #ad1457;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Category Cards */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 160px;
    max-width: 400px;
    height: 130px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--navbar-border);
    padding: 1rem;
    margin: 0.5rem;
}

.category-card:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: #6b7280;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-order {
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 12px !important;
}

.btn-order:hover {
    background: #ad1457;
    color: white;
}

.btn-buy-now {
    background: #FFC107;
    color: #ffffff;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-buy-now:hover {
    background: #edb100ff;
    color: white;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 10px 10px 0 0;
}

.modal-image {
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--footer-light-pink);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-icons a {
    margin: 0 0.5rem;
    font-size: 1.2rem;
    color:  #f5f2f2;
}

.social-icons a:hover {
    color: #ffffff;
}

.success-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Welcome Bar Mobile Adjustments */
    .welcome-bar .welcome-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .welcome-bar .welcome-text {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 120px !important;
        flex-shrink: 0;
    }

    .welcome-bar .welcome-links {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center;
    }

    .welcome-bar .welcome-links a {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .welcome-bar .cart-link a {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }

    .welcome-bar .cart-link .cart-icon {
        font-size: 0.8rem !important;
    }

    .welcome-bar .cart-link .cart-count {
        top: -6px !important;
        right: -6px !important;
        padding: 1px 4px !important;
        font-size: 0.6rem !important;
    }

    .welcome-bar .cart-dropdown {
        display: none !important;
    }

    /* Navbar Mobile */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        background: var(--navbar-bg);
        margin: 2px 0;
        border-radius: 6px;
    }

    .navbar .cart-dropdown {
        display: none !important;
    }

    .navbar-collapse {
        background: var(--navbar-bg);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--card-shadow);
    }

    /* Hero Buttons Mobile */
    .hero-buttons .btn-hero {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .hero-buttons .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Two-column product grid on mobile */
    #products .row > .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Hero Section Mobile */
    .hero-section {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-hero {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .hero-content .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Category Cards Mobile */
    .category-card {
        min-width: 120px;
        height: 120px;
    }

    .category-card i {
        font-size: 1.5rem;
    }

    .category-card h3 {
        font-size: 0.95rem;
    }

    .success-message {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}

/* Extra Small Mobile Adjustments */
@media (max-width: 480px) {
    .welcome-bar .welcome-text {
        max-width: 100px !important;
        font-size: 0.65rem !important;
    }

    .welcome-bar .welcome-links a {
        font-size: 0.65rem !important;
    }

    .welcome-bar .cart-link a {
        font-size: 0.65rem !important;
    }

    /* Hero Buttons Extra Small */
    .hero-buttons .btn-hero {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 18px;
    }

    /* Single-column product grid on extra small screens */
    #products .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}





/* Large screens (increase horizontal space + keep compact design) */
@media (min-width: 992px) {
    /* Add horizontal space to the whole layout */
    .container,
    #products,
    #categories,
    .hero-section,
    .footer {
        padding-left: 0.5rem !important;
        padding-right:0.5rem !important;
    }

    /* For ultra-wide screens */
    @media (min-width: 1400px) {
        .container,
        #products,
        #categories,
        .hero-section,
        .footer {
            padding-left: 5rem !important;
            padding-right: 5rem !important;
        }
    }

    /* Keep layout tight vertically */
    body {
        line-height: 1.4;
    }

    /* Navbar */
    .navbar {
        padding: 0.6rem 0 !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    /* Hero Section */
    .hero-section {
        height: 420px !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.6rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Products */
    #products h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }

    #products .row {
        row-gap: 1rem !important;
        column-gap: 1rem !important;
    }

    #products .card {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    }

    #products .card-body {
        padding: 1rem !important;
    }

    #products .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem !important;
    }

    #products .card-text {
        font-size: 0.8rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
    }

    #products .price {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    #products .btn-order,
    #products .btn-buy-now {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    /* Category Cards */
    .category-card {
        padding: 0.8rem !important;
        margin: 0.4rem !important;
        height: 120px !important;
    }

    .category-card h3 {
        font-size: 1rem !important;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 3rem !important;
        margin-top: 2rem !important;
    }
}

    

