* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #25d366;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

.navbar {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

.hero {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero {
    width: 100%;
    height: 100%; /* adjust height as needed */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    text-align: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 1.6rem;
    color: var(--text-dark);
}

.categories-container {
    margin-bottom: 2rem;
    overflow: hidden;
}

.categories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.categories-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
}

.show-more-btn {
	min-width: 200px; 
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.show-more-btn:hover {
    background-color: var(--primary-hover);
}

.products-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.products-row::-webkit-scrollbar {
    height: 8px;
}

.products-row::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.products-row::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    min-width: 280px;
    flex-shrink: 0;
}

.products-grid .product-card {
    min-width: auto;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.product-info {
    padding: 0.7rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quantity-btn {
    width: 27px;
    height: 27px;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.order-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-btn:hover {
    background-color: #1faa52;
    transform: scale(1.02);
}

.add-to-cart-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-hover);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    margin-bottom: 100px;
}

.bottom-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.bottom-cart.active {
    transform: translateY(0);
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-items-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-items-count svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.cart-count {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cart-total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.checkout-btn {
    padding: 0.75rem 2rem;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.checkout-btn:hover {
    background-color: #1faa52;
    transform: scale(1.02);
}

.checkout-btn svg {
    width: 20px;
    height: 20px;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-container {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .cart-info {
        width: 100%;
        justify-content: space-between;
    }

    .checkout-btn {
        width: 100%;
        justify-content: center;
    }

    .product-card {
        min-width: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* View Cart Button */
.view-cart-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-cart-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.03);
}

/* Remove Item Button in Cart Details */
.cart-detail-item button {
    padding: 0.4rem 0.8rem;
    background-color: #ef4444; /* red */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-detail-item button:hover {
    background-color: #dc2626; /* darker red */
    transform: scale(1.05);
}




.checkout-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* <-- moves content top */
    padding-top: 70px; /* distance from top */
    backdrop-filter: blur(2px);
}

.checkout-form-box {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    animation: popupFade .25s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.checkout-form-box h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.checkout-form-box input,
.checkout-form-box textarea {
    width: 100%;
    margin-bottom: 0.4rem;
    padding: 0.35rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.checkout-form-box button {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 6px;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.checkout-form-box button:hover {
    background-color: #1d4ed8;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.all-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #FF512F, #F09819);
  color: white;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 81, 47, 0.3);
}

.all-btn:hover {
  background: linear-gradient(135deg, #E04A28, #FF8C00);
  box-shadow: 0 6px 14px rgba(255, 81, 47, 0.4);
  transform: translateY(-2px);
}

.all-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(255, 81, 47, 0.2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}



/* Product details modal overlay */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: flex-start; /* align top, not center */
  padding-top: 150px; /* 🧩 space from header */
  padding-bottom: 150px; 
  z-index: 999;
  overflow-y: auto; /* scroll if content is long */
}

/* Modal box */
.product-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Image adjustments */
.modal-product-img {
  width: 100%;
  height: 150px; 
  object-fit: contain; 
  background-color: #f9f9f9; 
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}

/* Text info inside modal */
.modal-product-info h3 {
  margin: 5px 0;
  font-size: 1.25rem;
}

.modal-product-info p {
  margin: 6px 0;
  color: #444;
}

/* Animation for entry */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search Section*/
.search-section {
  text-align: center;
  margin-top: 0.5rem;
}

#productSearch {
  width: 90%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

#productSearch:focus {
  border-color: var(--primary-color);
}


/* 🔍 Header Search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* Pushes it to the right side of the navbar */
}

#searchIcon {
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: var(--text-dark);
  transition: color 0.3s ease, transform 0.3s ease;
}

#searchIcon:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

#headerSearch {
  width: 0;
  opacity: 0;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#headerSearch.active {
  width: 200px;
  opacity: 1;
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  #headerSearch.active {
    width: 150px;
  }
}

/* 🔍 footer */
.footer {
  background-color: #111827;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid #facc15;
  display: inline-block;
  padding-bottom: 4px;
}

.footer p,
.footer ul {
  color: #d1d5db;
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #facc15;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #facc15;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


.social-icons-step{
 display:flex;gap:14px;justify-content:center;margin:8px 0 12px 0;font-size:30px;
}

.ig{color:#E1306C;}
.yt{color:#FF0000;}
.fb{color:#1877F2;}

/* Attractive link input design */
.formmlink,
#customerLink {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    border: 2px solid #2563eb;
    border-radius: 10px;
    background: #f0f7ff;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
    margin-bottom: 32px;
    transition: .3s;
}

.formmlink:focus,
#customerLink:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 12px rgba(29, 78, 216, 0.4);
    background: #ffffff;
}

/* space above submit button (step2) */
#step2 button:first-of-type {
    margin-top: 28px !important;
}

/* 🔴 Subcategory Header Box Style */
.subcategory-header {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

