/* CodeWithTechDev - Digital Product Store CSS */

/* CSS Variables */
:root {
    --primary-color: #00B4D9;
    --primary-light: #A4CAE9;
    --text-color: #ffffff;
    --header-bg: #000000;
    --header-text: #00B4D9;
    --header-hover: #EAECED;
    --footer-bg: #A4CAE9;
    --footer-text: #2E3E59;
    --border-color: #e0e0e0;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

/* Special styling for Sign Up button when it's the only button on login page */
.auth-menu .btn-primary:only-child {
    background: linear-gradient(135deg, #00B4D9, #0077B6);
    color: white;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 180, 217, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.auth-menu .btn-primary:only-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-menu .btn-primary:only-child:hover::before {
    left: 100%;
}

.auth-menu .btn-primary:only-child:hover {
    background: linear-gradient(135deg, #0077B6, #00B4D9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 217, 0.4);
    color: white;
}

.auth-menu .btn-primary:only-child:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 180, 217, 0.3);
}

.btn-primary {
    background-color: #00b4d9;
    color: black;
}

.btn-primary:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
}

.btn-primary.btn-sm {
    background-color: #00b4d9;
    color: black;
    transform: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-primary.btn-sm:hover {
    background-color: #00b4d9;
    color: white;
    transform: scale(1.05);
    box-shadow: none;
}

.btn-outline {
    background-color: #00b4d9;
    color: black;
    border: 2px solid #00b4d9;
}

.btn-outline:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Header */
.header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
     max-height: 100%;
    
    margin-left: 50px;
    max-width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(0.8);
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--header-text);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
    color: #000000;
    border-radius: 2px;
    transform: scale(1.05);
}


.main-nav a.selected {
    background-color: var(--primary-color);
    color: #8ee629;
    
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: transparent !important;
}

 
/* ===== MOBILE TOGGLE BUTTON (Cart-like style) ===== */
.mobile-menu-toggle {
  display: none; /* Hidden by default, shown only on mobile and tablet */
  position: relative;
  background: linear-gradient(135deg, #008DC2 0%, #00A8FF 100%);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 15px rgba(0, 141, 194, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle - always hidden (static design) */
.mobile-menu-toggle {
  display: none !important;
}

/* Mobile toggle image inside button */
.mobile-menu-toggle img {
  width: 14px !important; /* Same as cart icon image */
  height: 14px !important; /* Same as cart icon image */
  object-fit: contain;
  filter: brightness(0) invert(1); /* White icon */
  transition: transform 0.3s ease;
}

/* Hover effects - matching cart icon */
.mobile-menu-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 141, 194, 0.3);
  background: linear-gradient(135deg, #00A8FF 0%, #008DC2 100%);
}

.mobile-menu-toggle:hover img {
  transform: scale(1.1) rotate(90deg);
}

/* Active state */
.mobile-menu-toggle:active {
  transform: translateY(-1px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #eef2f7;
  background-color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Mobile menu close button (Cart-like style) */
.mobile-menu-close {
  position: relative;
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  border: none;
  border-radius: 50%;
  width: 50px; /* Same as cart icon */
  height: 50px; /* Same as cart icon */
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close button image */
.mobile-menu-close img {
  width: 24px !important; /* Same as cart icon image */
  height: 24px !important; /* Same as cart icon image */
  object-fit: contain;
  filter: brightness(0) invert(1); /* White icon */
  transition: transform 0.3s ease;
}

/* Hover effects for close button */
.mobile-menu-close:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
  background: linear-gradient(135deg, #ff3742 0%, #ff4757 100%);
}

.mobile-menu-close:hover img {
  transform: scale(1.1) rotate(90deg);
}

/* Active state for close button */
.mobile-menu-close:active {
  transform: translateY(-1px);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
  padding: 25px 20px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Mobile navigation links */
.mobile-nav a {
  display: block;
  padding: 14px 18px;
  color: #000000 !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: transparent;
}

/* Hover states for links */
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: linear-gradient(135deg, #D0F82F 0%, #c4f016 100%);
  color: #000000 !important;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(208, 248, 47, 0.25);
}

/* ===== BACKDROP ===== */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ===== STATIC DESIGN - NO RESPONSIVE BREAKPOINTS ===== */

/* Filter Sidebar Styles */
.filters-sidebar * {
    font-weight: bold !important;
}

.filters-sidebar h3 {
    color: black !important;
}

.filters-sidebar label {
    color: black !important;
}

.filters-sidebar a {
    color: black !important;
}

.filters-sidebar input[type="radio"] {
    accent-color: black;
}

/* Products Main Black Background */
.products-main {
    background-color: black !important;
    border-radius: 10px;
    padding: 20px;
}

/* No Products Section - Full Black Text */
.no-products {
    color: black !important;
}

.no-products h3 {
    color: black !important;
}

.no-products p {
    color: black !important;
}

/* Product Info Black Background */
.product-info {
    background-color: black !important;
    border-radius: 10px;
    padding: 20px;
}

.product-info .product-title {
    color: white !important;
}

.product-info .product-title a {
    color: white !important;
}

.product-info .product-description {
    color: white !important;
}

/* All text in product-info to white */
.product-info * {
    color: white !important;
}

.product-info .product-category {
    color: white !important;
}

.product-info .product-price {
    color: white !important;
}

.product-info .product-rating {
    color: white !important;
}

.product-info .star {
    color: #ffc107 !important;
}

.product-info .rating-count {
    color: white !important;
}

/* Product Action Buttons */
.product-info .btn-primary,
.product-info .btn-outline {
    background-color: #00b4d9 !important;
    color: black !important;
    font-weight: bold !important;
    font-style: italic !important;
    border: 2px solid #00b4d9 !important;
}

.product-info .btn-primary:hover,
.product-info .btn-outline:hover {
    background-color: white !important;
    color: black !important;
    border: 2px solid #00b4d9 !important;
}

/* Product Features Section - Black Text */
.product-features {
    color: black !important;
}

.product-features h3 {
    color: black !important;
    font-weight: bold !important;
    font-style: italic !important;
}

.product-features ul {
    color: black !important;
    list-style: none !important;
    padding-left: 0 !important;
}

.product-features li {
    color: black !important;
    font-weight: bold !important;
    font-style: italic !important;
    padding-left: 15px !important;
    position: relative !important;
    margin-bottom: 10px !important;
}

.product-features li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    color: #28a745 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    margin-right: 3px !important;
}

/* Testimonials Section - White Text & Black Cards */
.testimonials {
    color: black !important;
}

.testimonials .section-title {
    color: black !important;
}

.testimonials .testimonial-card {
    background-color: black !important;
    color: white !important;
}

.testimonials .testimonial-content p {
    color: white !important;
}

.testimonials .testimonial-author {
    color: white !important;
}

.testimonials .testimonial-author strong {
    color: white !important;
}

.testimonials .stars {
    color: #ffc107 !important;
}

/* View All Articles Button - Custom Styling */
.blog-section .btn-outline {
    background-color: black !important;
    color: #00B4D9 !important;
    border: 2px solid #00B4D9 !important;
}

.blog-section .btn-outline:hover {
    background-color: white !important;
    color: #00B4D9 !important;
    border: 2px solid #00B4D9 !important;
}

/* View All Products Button - Same Styling */
.featured-products .btn-outline {
    background-color: black !important;
    color: #00B4D9 !important;
    border: 2px solid #00B4D9 !important;
}

.featured-products .btn-outline:hover {
    background-color: white !important;
    color: #00B4D9 !important;
    border: 2px solid #00B4D9 !important;
}

/* Hero Section - All Text Black */
.hero * {
    color: #000000 !important;
}

/* Hero Section Buttons - Black Fill with Black Text */
.hero .btn-primary,
.hero .btn-3d-secondary {
    background-color: black !important;
    color: black !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.hero .btn-primary:hover,
.hero .btn-3d-secondary:hover {
    background-color: black !important;
    color: black !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Hide button icons */
.hero .btn-icon,
.hero .btn-arrow {
    display: none !important;
}

/* 3D Elements - Black Text */
.hero .category-object .obj-label {
    color: #000000 !important;
}

.hero .category-object .obj-icon {
    color: #000000 !important;
}

/* Hero titles and subtitles */
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-subtitle-2,
.hero .hero-subtitle-3 {
    color: #000000 !important;
}

/* Blog Section - White Text & Black Cards */
.blog-section .blog-card {
    background-color: black !important;
    color: white !important;
}

.blog-section .blog-card h3 {
    color: white !important;
}

.blog-section .blog-card p {
    color: white !important;
}

.blog-section .blog-card .blog-meta {
    color: white !important;
}

.blog-section .blog-card .btn {
    color: white !important;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000000;
    font-weight: 700;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: #2995A6;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background-color: #2995A6;
}

.category-tab {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover,
.category-tab.active {
    background-color: #000000;
    color: #FFFAF0;
}

.category-content {
    min-height: 400px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.product-badge.free {
    background-color: var(--success-color);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-category {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.free-price {
    color: var(--success-color);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: #2995A6;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #2995A6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #2995A6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title a {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-excerpt {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.blog-date {
    color: var(--medium-gray);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: #5ee2ff;
}

/* Product Detail Page */
.product-detail {
    background-color: #60ddf9;
    padding: 80px 0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.25rem;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--light-gray);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #FFFAF0;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: #FFFAF0;
}

.footer-brand p {
    margin-bottom: 1rem;
    color: #FFFAF0;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #FFFAF0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #FFFAF0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #D0F82F;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: #FFFAF0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #FFFAF0;
}

.social-links a:hover {
    background-color: #D0F82F;
    color: #000000;
    border-color: #D0F82F;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-bottom p {
    color: #FFFAF0;
}

/* Static Design - No Responsive Breakpoints */

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/* Cart Icon Animations */
@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.15);
    }
    75% {
        transform: scale(0.95);
    }
}

@keyframes cartAmazingClick {
    0% {
        transform: scale(1) rotate(0deg);
    }
    15% {
        transform: scale(0.8) rotate(-5deg);
    }
    30% {
        transform: scale(1.3) rotate(5deg);
    }
    45% {
        transform: scale(0.9) rotate(-3deg);
    }
    60% {
        transform: scale(1.2) rotate(3deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes cartCountPulse {
    0%, 100% {
        transform: scale(1);
        background-color: #D0F82F;
    }
    25% {
        transform: scale(1.4);
        background-color: #FF6B6B;
    }
    50% {
        transform: scale(1.6);
        background-color: #4ECDC4;
    }
    75% {
        transform: scale(1.2);
        background-color: #45B7D1;
    }
}

css
/* Cart Icon Container */
.cart-toggle {
  position: relative;
  display: inline-block;
}

/* Cart Icon Link */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.cart-icon:active {
  transform: translateY(-1px);
}

/* Cart Icon Image */
.cart-icon img {
  width: 24px;
  height: 24px;
   
  transition: transform 0.3s ease;
}

.cart-icon:hover img {
  transform: scale(1.1);
}

/* Cart Count Badge */
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cart-icon:hover .cart-count {
  transform: scale(1.1);
  background: #ff3742;
}

/* Animation for cart count updates */
@keyframes bounce {
  0%, 20%, 60%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}

.cart-count.update {
  animation: bounce 0.5s ease;
}

/* Optional: Different styles when cart is empty */
.cart-count:empty {
  display: none;
}

/* Optional: Style for when cart has items */
.cart-icon.has-items {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}
