* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #ff0000;
}

.menu-btn {
    display: block;
    cursor: pointer;
    z-index: 1100;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-menu ul li {
    margin: 1.5rem 0;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

/* Main Content Styles */
header {
    background: linear-gradient(135deg, #ff0000, #d60000);
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-main {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-main span {
    color: #ffd700;
}

.search-container {
    flex: 0 1 600px;
    position: relative;
    margin: 0 2rem;
}

#search {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #ff0000;
    border-radius: 30px;
    background: white;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.filter-btn.active {
    background-color: #f50057;
    color: #fff;
    font-weight: bold;
    transform: scale(1.05);
}

.filter-btn:hover {
    background: #f50057;
    color: white;
    transform: scale(1.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 30px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes floatGlowSmooth {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    }
}
.join-group-container {
  text-align: center;
  margin: 20px 0;
  animation: fadeIn 1.2s ease-in-out;
}

.join-group-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(90deg, #ff4d4d, #b30000);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
  animation: pulse 2s infinite;
}

.join-group-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Filter Bar (Sticky) */
.filter-bar {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    transition: background 0.3s ease;
}

.filter-bar.active {
    background: rgba(255, 255, 255, 0.9); /* fix for visual clarity on scroll */
}

@keyframes filterLoop {
    0% { transform: scale(1); box-shadow: 0 0 5px #ff69b4; }
    50% { transform: scale(1.05); box-shadow: 0 0 15px #ff1493; }
    100% { transform: scale(1); box-shadow: 0 0 5px #ff69b4; }
}

.filter-btn {
    animation: filterLoop 4s ease-in-out infinite;
    transition: all 0.3s ease;
    border: none;
    padding: 10px 16px;
    margin: 5px;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Optional: active filter button */
.filter-btn.active {
    background-color: #f50057;
    color: #fff;
    font-weight: bold;
}

/* Button hover style */
.filter-btn:hover {
    background: #f50057;
    color: white;
    transform: scale(1.05);
}

/* Hide scrollbar on filter bar */
.filter-bar::-webkit-scrollbar {
    display: none;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 3px solid #ff0000;
}

.product-info {
    padding: 20px;
    position: relative;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 3.5em;
}

.product-price {
    color: #ff0000;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 10px 0;
}

.buy-btn {
    background: linear-gradient(135deg, #ff0000, #d60000);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.buy-btn:hover {
    transform: scale(0.98);
}

.tags {
    font-size: 0.85rem;
    color: #666;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.format-badge {
    position: absolute;
    top: -2px;
    right: 15px;
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #ff0000;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

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

    .menu-btn {
        display: block;
    }

    header {
        flex-wrap: wrap;
        padding: 1rem;
        margin-top: 60px;
    }

    .search-container {
        order: 3;
        width: 100%;
        margin: 1rem 0 0 0;
    }

    .logo-main {
        font-size: 1.5rem;
    }

    .filter {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Graphic Wala Heading Styles */
.graphicwala-heading-container {
    border-top: 1px solid #ddd;
    padding-top: 40px;
    margin-top: 60px;
}

.graphicwala-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 auto 20px;
    padding: 10px 0;
    line-height: 1.3;
    position: relative;
    max-width: 900px;
}

.graphicwala-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #ff6b6b;
    margin: 15px auto 0;
}

@media (max-width: 768px) {
    .graphicwala-heading {
        font-size: 1.8rem;
        padding: 10px 20px;
    }
    .graphicwala-heading-container {
        padding-top: 30px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.4);
}

/* Footer Styles */
.footer {
    background: #1a1e2b;
    color: #e0e0e0;
    padding: 70px 0 0;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff4d4d, #ff0000);
    border-radius: 3px;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Logo Styles */
.logo-footer a {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-footer a span {
    color: #ff4d4d;
}

.company-description {
    margin-bottom: 25px;
    color: #b0b0b0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
}

.badge i {
    color: #ff4d4d;
    font-size: 1rem;
}

/* List Styles */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #ff4d4d;
    transform: translateX(5px);
}

.footer-section ul li a i {
    font-size: 0.7rem;
    color: #ff4d4d;
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: #ff4d4d;
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span {
    font-size: 0.8rem;
    color: #888;
}

.contact-item a, .contact-item address {
    color: #e0e0e0;
    text-decoration: none;
    font-style: normal;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #ff4d4d;
}

/* Newsletter Form */
.newsletter-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form {
    margin-top: 15px;
}

.input-group {
    display: flex;
    margin-bottom: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.input-group button {
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    border: none;
    padding: 0 18px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.input-group button:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.form-note {
    font-size: 0.75rem;
}
/* Footer Bar */
.footer-bar {
    background: #12151f;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: #888;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.legal-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #ff4d4d;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links span {
    color: #888;
    font-size: 0.85rem;
}

.social-links a {
    color: #b0b0b0;
    font-size: 1rem;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: #fff;
    background: #ff4d4d;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(255, 77, 77, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.4);
}

/* Responsive Footer Styles */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 50px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .trust-badges {
        justify-content: center;
    }
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    .footer-bar-container {
        flex-direction: column;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding-top: 40px;
    }
    .footer-container {
        padding: 0 20px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}
