@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --accent-dark: #f5576c;
    
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f5f7fa;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    
    --white: #ffffff;
    --black: #171717;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-gradient);
    overflow-x: hidden;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 3%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    padding: 10px 3%;
    box-shadow: var(--shadow-lg);
}

.logo-link {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.logo {
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 10px 16px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    display: inline-block;
}

.nav-list a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
    margin-top: 8px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    display: block;
    border-radius: 0;
    transition: var(--transition-fast);
    font-size: 14px;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding-left: 30px;
    transform: none;
}

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

/* Right Navigation */
.right-nav {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-icon {
    color: var(--text-dark);
    font-size: 18px;
    transition: var(--transition-base);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.logout-btn i {
    font-size: 16px;
}

/* Mobile Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition-base);
    border-radius: 2px;
}

.burger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .line:nth-child(2) {
    opacity: 0;
}

.burger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-section {
    margin-top: 70px;
}

.c-item {
    height: 500px;
}

.c-img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.carousel-caption h1,
.carousel-caption p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

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

.animate-slide-up {
    animation: slideUp 1s ease;
}

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

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

/* ============================================
   SECTIONS
   ============================================ */
.content-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: 600;
    font-size: 36px;
    margin: 40px 0 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 20px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* ============================================
   RECIPE CARDS (What We're Creating & Explore More)
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.card-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.recipe-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.7;
    transition: var(--transition-base);
}

.recipe-card:hover::before {
    opacity: 0.9;
}

.recipe-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    z-index: 1;
}

.card-overlay h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.recipe-card:hover .card-overlay h3 {
    transform: translateY(0);
}

/* Background Images */
.box1 { background-image: url("images/img-7.jpg"); }
.box2 { background-image: url("images/img-8.jpg"); }
.box3 { background-image: url("images/img-9.jpg"); }
.box44 { background-image: url("images/V.avif"); }
.box4 { background-image: url("images/img-18.jpg"); }
.box5 { background-image: url("images/img-11.jpg"); }
.box6 { background-image: url("images/img-3.jpg"); }
.box7 { background-image: url("images/img-19.jpg"); }
.box8 { background-image: url("images/img-21.jpg"); }

/* ============================================
   TRENDING NOW SECTION
   ============================================ */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.trending-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
}

.trending-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.trending-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    z-index: 1;
}

.trending-overlay p {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
}

/* Trending Card Images */
.trending-card-1 { background-image: url("images/img-22.jpg"); }
.trending-card-2 { background-image: url("images/img-23.webp"); }
.trending-card-3 { background-image: url("images/img-24.jpg"); }
.trending-card-4 { background-image: url("images/img-25.jpg"); }

/* ============================================
   FAN FAVORITES SECTION
   ============================================ */
.favorites-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--radius-lg);
}

.favorite-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.favorite-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.favorite-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin: 15px;
    transition: var(--transition-base);
}

.favorite-card:hover .favorite-image {
    transform: scale(1.05);
}

.favorite-title {
    display: block;
    padding: 15px 20px;
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.favorite-card:hover .favorite-title {
    color: var(--primary-color);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.search-container-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-heading {
    color: var(--white);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-input-wrapper {
    position: relative;
    margin: var(--spacing-md) 0;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    z-index: 1;
}

.search-input {
    width: 100%;
    height: 55px;
    padding: 0 20px 0 55px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 40px;
    background: var(--white);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--spacing-md);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.search-btn i {
    font-size: 18px;
}

/* ============================================
   DOWNLOAD APP SECTION
   ============================================ */
.download-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-heading {
    font-size: 36px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.download-heading strong {
    font-weight: 700;
    color: var(--primary-color);
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.app-link img {
    width: 180px;
    height: auto;
    transition: var(--transition-base);
    filter: drop-shadow(var(--shadow-sm));
}

.app-link:hover img {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(var(--shadow-md));
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #34495e 100%);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 30px;
        --spacing-xl: 40px;
    }

    body {
        padding-top: 70px;
    }

    .header {
        padding: 10px 5%;
    }

    .nav-list {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: -100%;
        background: var(--white);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: var(--spacing-lg) 0;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-list.active {
        left: 0;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 10px;
    }

    .burger {
        display: flex;
    }

    .right-nav {
        gap: 10px;
    }

    .logout-btn span {
        display: none;
    }

    .logout-btn {
        padding: 10px 15px;
    }

    .hero-section {
        margin-top: 70px;
    }

    .c-item {
        height: 350px;
    }

    .carousel-caption h1 {
        font-size: 2rem !important;
    }

    .carousel-caption p {
        font-size: 1rem !important;
    }

    .section-heading {
        font-size: 28px;
    }

    .card-grid,
    .card-grid-5 {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .recipe-card,
    .trending-card {
        height: 300px;
    }

    .favorites-section {
        grid-template-columns: 1fr;
    }

    .search-heading {
        font-size: 24px;
    }

    .download-heading {
        font-size: 24px;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 24px;
    }

    .search-input {
        height: 50px;
        font-size: 14px;
    }

    .search-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   SHOPPING CART STYLES
   Add this to your main CSS or include separately
   ============================================ */

/* Product Cards (for shop pages) */
.product-card {
  position: relative;
  background: var(--white, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.in-cart-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
  animation: slideInRight 0.3s ease;
}

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

.product-details {
  padding: 20px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px 0;
  min-height: 48px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin: 12px 0;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn.added {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.add-to-cart-btn.added:hover {
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Cart Container */
.cart-container {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
  margin-bottom: 20px;
}

.cart-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 12px;
}

#count {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  display: inline-block;
  animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.cartItem {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar */
.cartItem::-webkit-scrollbar {
  width: 8px;
}

.cartItem::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cartItem::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.cartItem::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653991 100%);
}

/* Cart Item */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 15px;
  padding: 15px;
  margin-bottom: 15px;
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: slideInUp 0.3s ease;
}

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

.cart-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  transform: translateX(5px);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0 0 8px 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 12px;
}

.qty-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.qty-btn:active {
  transform: scale(0.95);
}

.quantity {
  font-weight: 700;
  color: #2c3e50;
  min-width: 30px;
  text-align: center;
  font-size: 16px;
}

.cart-item-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.item-total-price {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.remove-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.remove-btn:hover {
  color: #c0392b;
  background: rgba(231, 76, 60, 0.1);
  transform: scale(1.2);
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  color: #95a5a6;
}

.empty-cart i {
  font-size: 100px;
  margin-bottom: 20px;
  opacity: 0.3;
  display: block;
}

.empty-cart p {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #7f8c8d;
}

.empty-cart small {
  font-size: 16px;
  color: #95a5a6;
}

/* Cart Footer */
.cart-footer {
  border-top: 2px solid #ecf0f1;
  padding-top: 20px;
  margin-top: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

#total {
  font-size: 28px;
  font-weight: 700;
  color: #667eea;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cart-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clear-cart-btn {
  background: white;
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.clear-cart-btn:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-2px);
}

.checkout-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Notifications */
.notification {
  position: fixed;
  top: 100px;
  right: -350px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  min-width: 280px;
  max-width: 400px;
}

.notification.show {
  right: 20px;
}

.notification i {
  font-size: 24px;
  flex-shrink: 0;
}

.notification span {
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.4;
}

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

.notification-success i {
  color: #27ae60;
}

.notification-warning {
  border-left: 4px solid #f39c12;
}

.notification-warning i {
  color: #f39c12;
}

.notification-info {
  border-left: 4px solid #3498db;
}

.notification-info i {
  color: #3498db;
}

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

.notification-error i {
  color: #e74c3c;
}

/* Bounce Animation for Cart Icon */
@keyframes bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.bounce {
  animation: bounce 0.5s ease;
}

/* Responsive Cart */
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-total {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
  }
  
  .cart-actions {
    grid-template-columns: 1fr;
  }
  
  .notification {
    min-width: 250px;
    right: -300px;
    top: 80px;
  }
  
  .notification.show {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .product-card {
    margin: 10px 0;
  }
  
  .cart-item-title {
    font-size: 13px;
  }
  
  .item-total-price {
    font-size: 16px;
  }
  
  #total {
    font-size: 24px;
  }
}