/*gigMarketplace.css*/
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

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

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}


main {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #167A4E; /* Dark Green */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 12px;
    margin: -8px -12px;
}

/* Styling for the Login button */
#header-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    flex-wrap: wrap;
}

#logout-button{
    background: #E5924A; /* Orange */
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}
#logout-button:hover {
    background-color: #D47A38; /* Slightly darker orange */
    transform: translateY(-2px);
}

button.login-btn {
    background: #E5924A; /* Orange */
    color: #333;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
     transition: background 0.3s ease, transform 0.2s ease;
}

button.login-btn:hover {
    background-color: #D47A38; /* Slightly darker orange */
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0.75rem;
    }

    header .logo {
        font-size: 1.3rem;
    }
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #167A4E; /* Dark Green */
    color: white;
    padding: 3rem 1rem;
    min-height: auto;
    width: 100%;
    max-width: 100%;
}

#hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    padding: 0 0.5rem;
}

#hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

button, .gig-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

button:hover, .gig-button:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.20);
    transform: translateY(-2px);
}

#hero button {
    background: #E5924A; /* Orange */
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
    min-width: 200px;
    /* IMPROVEMENT: Better touch target for mobile */
    min-height: 48px;
}

#hero button:hover {
    background: #D47A38; /* Slightly darker orange */
}

/* IMPROVEMENT: Hero responsive styles for tablets */
@media (max-width: 768px) {
    #hero {
        padding: 2rem 1rem;
    }

    #hero h1 {
        font-size: 1.7rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .hero-buttons button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        min-width: auto;
    }
}

/* IMPROVEMENT: Hero responsive styles for phones */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.4rem;
        padding: 0 0.25rem;
    }

    #hero p {
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }

    .hero-buttons {
        padding: 0 0.5rem;
    }

    .hero-buttons button {
        width: 90%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* Featured Gigs Section */
.featured-gigs-section {
  text-align: center;
  padding: 2rem 0;
  background: #e6f9fb;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.featured-gigs-section h2 {
  margin-bottom: 32px;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 0 10px;
  }

  .carousel::-webkit-scrollbar {
    display: none;
  }

  .carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.carousel {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 16px;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-track {
  background: transparent;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(22, 122, 78, 0.3);
  border-radius: 3px;
}

.carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 122, 78, 0.5);
}

.business-card {
  flex: 0 0 300px; /* Base width */
  max-width: 90%;  /* Prevent overflow on small screens */
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  border: 1.5px solid #167A4E;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  scroll-snap-align: center;
  flex-shrink: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.business-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #167A4E;
  margin-bottom: 12px;
  object-fit: cover;
}

.business-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #167A4E;
  margin-bottom: 6px;
}

/* All business cards show full content */
.business-card .description {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: black;
  max-height: 60px;
  overflow: hidden;
}

.business-card .learn-more-btn {
    display: inline-block;
}

/* Scroll indicator dots - mobile only */
.carousel-scroll-indicators {
  display: none;
}

@media (max-width: 768px) {
  .carousel-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 16px;
  }
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.scroll-dot.active {
  background: #167A4E;
  transform: scale(1.3);
}

.business-card h3 {
  margin: 0;
  font-weight: 700;
  color: #167A4E;
  font-size: 1.1rem;
}

.learn-more-btn {
  padding: 10px 25px;
  background-color: #167A4E;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 25px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #125d3c;
}

.swipe-hint {
  text-align: center;
  font-size: 14px;
  color: black;
  margin-top: 10px;
  display: block;
  font-weight: 600;
}

/* Desktop: center the carousel container and hide swipe hint */
@media (min-width: 1024px) {
  .carousel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
  }
  .swipe-hint {
    display: none !important;
  }
}



/* IMPROVEMENT: Responsive carousel for tablets */
@media (max-width: 900px) {
  .carousel-wrapper {
    padding: 0 15px;
    overflow: hidden;
  }
  .carousel {
    gap: 20px;
  }
  .business-card {
    flex: 0 0 250px;
    padding: 18px 12px;
  }
  .business-card img {
    width: 60px;
    height: 60px;
  }
  .business-card h3 {
    font-size: 1rem;
  }
}

/* IMPROVEMENT: Very small screens */
@media (max-width: 380px) {
  .business-card {
    flex: 0 0 90%;
    padding: 14px 8px;
  }
  .business-card img {
    width: 50px;
    height: 50px;
  }
  .business-card h3 {
    font-size: 0.9rem;
  }
}

/* =========================
   Categories Section
   ========================= */

#categories {
    padding: 2.5rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

#categories h2 {
    margin-bottom: 1.75rem;
    font-size: 1.6rem;
}

/* ✅ MOBILE FIRST: 2 columns */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Category cards */
.category-grid a {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.3rem;
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;
    font-size: 1rem;
    color: #000;
    text-decoration: none;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ✅ TABLET & UP */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }

    .category-grid a:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
        background-color: #DEF4F6;
    }
}

/* ✅ DESKTOP */
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1100px;
    }
}

/* Featured Products Section */
#featured-products {
    padding: 2rem 0;
    text-align: center;
    background: #f9f9f9;
    width: 100%;
    max-width: 100%;
}

#featured-products h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Show More Button Container */
#show-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 0.5rem;
    width: 100%;
}

.show-more-btn {
    background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(22, 122, 78, 0.3);
    min-width: 200px;
    min-height: 50px;
    letter-spacing: 0.5px;
    font-family: 'Lora', serif;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #135D3D 0%, #16a34a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 122, 78, 0.4);
}

.show-more-btn:active {
    transform: translateY(-1px);
}

.show-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(22, 122, 78, 0.2);
}

.show-more-btn i {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .show-more-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
        min-width: 160px;
        min-height: 44px;
    }
}

@media (max-width: 400px) {
    .show-more-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
        min-width: 140px;
        min-height: 40px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        padding: 0 0.5rem;
    }
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* IMPROVEMENT: Better product card for mobile */
.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Image wrapper with fixed height and contain fit */
.product-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
}

.product-card-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 6px;
}

.product-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    margin-bottom: 6px;
}

.product-card-business {
    font-size: 0.85rem;
    color: #167A4E;
    margin-bottom: 8px;
}

.product-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #167A4E;
}

.product-card-type {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    position: absolute;
    top: 8px;
    right: 8px;
}

.product-card-type.online {
    background-color: #2196f3;
}

.product-card-type.physical {
    background-color: #ff9800;
}

/* IMPROVEMENT: Responsive product grid for tablets */
@media (max-width: 600px) {
    #featured-products {
        padding: 1.5rem 0.5rem;
    }
    
    #featured-products h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 0.25rem;
    }
    
    .product-card {
        min-height: 240px;
        border-radius: 10px;
    }
    
    .product-card-image-wrapper {
        height: 120px;
        padding: 10px;
    }
    
    .product-card-image {
        width: 90px;
        height: 90px;
    }
    
    .product-card-content {
        padding: 10px;
    }
    
    .product-card-name {
        font-size: 0.85rem;
        min-height: 2.4em;
    }
    
    .product-card-price {
        font-size: 1rem;
    }
}

/* IMPROVEMENT: Responsive product grid for phones */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card {
        min-height: 220px;
    }
    
    .product-card-image-wrapper {
        height: 100px;
        padding: 8px;
    }
    
    .product-card-image {
        width: 80px;
        height: 80px;
    }
    
    .product-card-content {
        padding: 8px;
    }
    
    .product-card-name {
        font-size: 0.8rem;
        min-height: 2.2em;
    }
}



.category {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}


.category-grid a {
    display: block;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #000; /* Text color */
    text-decoration: none; /* Remove underline */
    transition: transform 0.2s ease-in-out;
}

.category-grid a:hover {
    transform: scale(1.05);
    background: #DEF4F6; /* Light Blue */
}

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

#category-select {
    padding: 12px 18px;
    font-size: 16px;
    border: 2px solid #E5924A;
    border-radius: 12px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    outline: none;
    appearance: none;
    text-align: center;
    transition: border 0.3s ease;
}

#category-select:hover,
#category-select:focus {
    border-color: #167A4E;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    background-color: #ffffff;
}



/* Form Pages */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.form-container h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #167A4E; /* Dark Green */
}

.form-container p {
    padding-top: 7px;
    color: #666;
}

form label {
    display: block;
    text-align: left;
    margin: 0.5rem 0 0.3rem;
    font-weight: 600;
    color: #333;
}

form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

form input:focus {
    border-color: #167A4E; /* Dark Green */
    outline: none;
    box-shadow: 0 0 8px rgba(22, 122, 78, 0.3);
}

form button {
    margin-bottom: 4px;
    width: 100%;
    padding: 1rem;
    background: #167A4E; /* Dark Green */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background: #135D3D; /* Darker Green */
    transform: translateY(-2px);
}

form p {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #167A4E; /* Dark Green */
}

form p a {
    color: #167A4E; /* Dark Green */
    text-decoration: none;
}

form p a:hover {
    text-decoration: underline;
}

/* About Us Section */
#about-us {
    background: #DEF4F6; /* Light Blue */
    padding: 3rem 1rem;
    text-align: center;
}

#about-us h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

#about-us p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    position: relative;
    bottom: 0;
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: #167A4E; /* Dark Green */
    color: #fff;
    margin-top: 2rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* IMPROVEMENT: Responsive footer for mobile */
@media (max-width: 480px) {
    footer {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* Responsive Forms */
/* IMPROVEMENT: Better responsive form styles */
@media (max-width: 768px) {
    .form-container {
        width: 94%;
        padding: 1.75rem 1.25rem;
        margin: 1rem auto;
    }

    .form-container h1 {
        font-size: 1.4rem;
    }

    form input,
    form button {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .form-container {
        width: 96%;
        padding: 1.5rem 1rem;
    }

    .form-container h1 {
        font-size: 1.3rem;
    }

    form label {
        font-size: 0.9rem;
    }

    form input,
    form button {
        padding: 12px 14px;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/*Application Email Error*/
.error-message {
    font-size: 0.9em;
    font-weight: bold;
    display: block;
    min-height: 1.2em;
    color: red;
    margin-bottom: 0.5rem;
}

.error-message:empty {
    min-height: 0;
    margin: 0;
    padding: 0;
}

.error-message_l {
  color: red;
  font-weight: bold;
  margin-bottom: 10px;
}
/* Application Page Styles */
.application-container {
    max-width: 900px;
    margin: 3rem auto;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.application-container h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: #167A4E; /* Dark Green */
    text-align: center;
}

.application-container p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.application-container label {
    display: block;
    font-weight: 600;
    margin: 0.5rem 0 0.3rem;
    color: #333;
}

.application-container input, 
.application-container textarea, 
.application-container select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
    appearance: none;
    background-color: #f9f9f9;
}

.application-container select {
  -webkit-appearance: none; /* remove default arrow in Chrome/Safari */
  -moz-appearance: none;    /* remove default arrow in Firefox */
  appearance: none;         /* remove default arrow */
  background: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

#gig:focus {
  outline: none;
  border-color: #167A4E; /* brand green */
  box-shadow: 0 0 6px rgba(22, 122, 78, 0.5); /* subtle glow */
}

#message:focus {
  outline: none;
  border-color: #167A4E; /* brand green */
  box-shadow: 0 0 6px rgba(22, 122, 78, 0.5); /* subtle glow */
}

#role {
  -webkit-appearance: none; /* remove default arrow in Chrome/Safari */
  -moz-appearance: none;    /* remove default arrow in Firefox */
  appearance: none;         /* remove default arrow */
  width: 100%;
  max-width: 400px;
  padding: 12px 35px 12px 12px; /* top/right/bottom/left, space for arrow */
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 16px;
  font-family: 'Lora', serif;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#role:focus {
  border-color: #167A4E;
  box-shadow: 0 0 5px rgba(22, 122, 78, 0.4);
  outline: none;
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

#toggleViewBtn {
    background: #E5924A; /* Orange */
    color: #333;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

#toggleViewBtn:hover {
    background-color: #D47A38; /* Slightly darker orange */
    transform: translateY(-2px);
}


/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 220px;
    height: 100vh;
    background: #DEF4F6;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar.hidden {
    display: none;
}

.sidebar button {
    background-color: #E5924A;
    color: black;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar button:hover {
    background-color: #D47A38;
}

@media (max-width: 1024px) {
    .sidebar {
        justify-content: flex-start;
    }

    .sidebar-buttons {
        margin-top: auto;
        margin-bottom: 100px; /* push it 30px higher from the bottom */
    }
}

@media (max-width: 780px) {
    .sidebar {
        justify-content: flex-start;
    }

    .sidebar-buttons {
        margin-top: 20px;   /* remove auto push */
        margin-bottom: 0;
    }
}


#notifications-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notifications-btn::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
    border: 2px solid #DEF4F6;
    display: none; /* hide by default */
}

#notifications-btn.has-notification::after {
    display: block; /* show red dot only when class is added */
}

#orders-btn {
    background-color: #E5924A;
    color: black;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

#orders-btn:hover {
    background-color: #D47A38;
    transform: translateY(-2px);
}


.sidebar {
    animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ================= ROLE SWITCHER ================= */
.role-switcher {
    background: #ffffff;
    border: 1.5px solid #167A4E;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0 6px;
    box-shadow: 0 3px 10px rgba(22, 122, 78, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-switcher-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #167A4E;
}

.role-switcher-label i {
    font-size: 0.9rem;
}

.role-switcher-current {
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.role-switcher-current strong {
    color: #167A4E;
    font-weight: 700;
}

.role-switcher-btn {
    background: #E5924A;
    color: #333;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    width: 100%;
}

.role-switcher-btn:hover {
    background-color: #D47A38;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.role-switcher-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.role-switcher-btn i {
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .role-switcher {
        padding: 12px;
    }
}

/* Search Container */
/* Search Container - Centered, Rounded, Subtle */
#search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    left: auto;
    transform: none;
    background-color: #f1f1f1;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
}

/* Search Input */
#search-container input {
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 999px 0 0 999px;
    background: transparent;
    width: 100%;
    min-width: 0;
}

/* Search Button */
#search-container button {
    background-color: #D47A38;
    border: none;
    color: white;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
}

#search-container button:hover {
    background-color: #bb662f;
}

/* IMPROVEMENT: Responsive search container */
@media (max-width: 600px) {
    #search-container {
        max-width: 100%;
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    #search-container input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    #search-container button {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    #search-container {
        padding: 4px 6px;
    }
    
    #search-container input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    #search-container button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Wrap logo and user menu side-by-side */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Responsive stacking layout */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 0.75rem;
    }

    .header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    #search-container {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        flex-wrap: nowrap;
    }

    #search-container input {
        flex: 1;
        min-width: 0;
        border-radius: 12px 0 0 12px;
        font-size: 0.9rem;
    }

    #search-container button {
        border-radius: 0 12px 12px 0;
        padding: 10px 14px;
        font-size: 0.9rem;
        width: auto;
        white-space: nowrap;
    }

    .business-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    #toggleViewBtn {
        width: auto;
        padding: 12px 24px;
    }
}

/* IMPROVEMENT: Extra small devices */
@media (max-width: 400px) {
    header {
        padding: 0.5rem 0.5rem;
    }
    
    .header-top {
        flex-wrap: nowrap;
    }
    
    header .logo {
        font-size: 1.2rem;
    }
    
    #search-container {
        padding: 0.5rem 0.5rem;
    }
    
    #search-container input {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    #search-container button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}


/* List View Styles */
#businesses.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#businesses.list-view li {
  padding: 0; /* Remove padding here */
  border: none; /* Remove border here */
}

.business-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background-color 0.2s, transform 0.2s ease-in-out;
}

.business-link:hover {
    background-color: #f9f9f9;
    transform: scale(1.01);
}

/* Left: logo/icon */
.business-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.business-left img,
.business-left i.fa-user-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Right: name + description */
.business-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    }

.business-right h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.business-right .description {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
}

@media (max-width: 850px) {
  .business-right .description {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 0.9rem;
    line-height: 1.2rem;
  }

  .business-right {
    max-width: 100%;
  }

  .business-link {
    flex-direction: column;
  }

  .business-left img {
    max-width: 100px;
    height: auto;
  }
}

/* Grid View Styles */
#businesses.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

#businesses.grid-view li {
    padding: 0;
    border: none;
}

#businesses.grid-view .business-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    height: 100%;
    transition: background-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}

#businesses.grid-view .business-link:hover {
    background-color: #f5f5f5;
    transform: scale(1.02);
}

#businesses.grid-view .business-left {
    width: 100px;
    height: 100px;
    margin-bottom: 0.75rem;
}

#businesses.grid-view .business-left img,
#businesses.grid-view .business-left i {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#businesses.grid-view .business-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#businesses.grid-view .business-right h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

#businesses.grid-view .description {
    display: none;
}

#business-list {
    padding: 2rem;
}

#businesses {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 850px) {
  .business-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .business-left {
    margin-bottom: 10px;
  }

  .business-right {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .business-right h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.3rem;
  }

  .business-right .description {
    font-size: 1rem;
    max-width: 90%;
    word-wrap: break-word;
  }
}

/*Business Page*/
/* Business Profile */
.business-profile {
    width: 100%;
    margin: 0 auto;
    padding: 0 5%; 
    border-radius: 16px;
    min-height: calc(100vh - 80px);
    background-color: var(--business-bg-color, #ffffff);
}

/* Business Banner */
.business-banner {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #167A4E;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
  overflow: hidden;
}

.business-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  display: block;
}

.business-banner .banner-content {
  position: absolute;
  bottom: 20px;
  left: 30px;
  z-index: 1;
}

.business-banner .banner-content h1 {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.business-banner .banner-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin: 5px 0 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive banner */
@media (max-width: 768px) {
  .business-banner {
    height: 150px;
    border-radius: 12px 12px 0 0;
  }
  
  .business-banner .banner-content {
    bottom: 15px;
    left: 20px;
  }
  
  .business-banner .banner-content h1 {
    font-size: 1.5rem;
  }
  
  .business-banner .banner-content p {
    font-size: 0.9rem;
  }
}

/* ================= BUSINESS PROFILE LAYOUT STYLES ================= */

/* Layout: Standard - Traditional layout with logo on left */
.layout-standard.business-profile .profile-top {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.layout-standard.business-profile .logo-container {
    flex: 0 0 auto;
}

.layout-standard.business-profile .info-container {
    flex: 1;
    text-align: left;
}

/* Layout: Modern - Centered layout with large logo */
.layout-modern.business-profile {
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 1200px;
    margin: 2rem auto;
}

.layout-modern.business-profile .profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.layout-modern.business-profile .logo-container img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--business-heading-color, #167A4E);
}

.layout-modern.business-profile .info-container {
    align-items: center;
}

/* Layout: Minimal - Clean, compact layout */
.layout-minimal.business-profile {
    padding: 1rem;
    border-radius: 8px;
}

.layout-minimal.business-profile .profile-top {
    gap: 1rem;
}

.layout-minimal.business-profile .logo-container img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.layout-minimal.business-profile .info-container p {
    font-size: 1rem;
    margin: 0.4rem 0;
}

/* Layout: Showcase - Logo-focused with prominent display */
.layout-showcase.business-profile {
    padding: 2rem;
    max-width: 100%;
}

.layout-showcase.business-profile .profile-top {
    gap: 2rem;
    padding: 2rem;
    border-radius: 16px;
}

.layout-showcase.business-profile .logo-container img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    border: 4px solid var(--business-heading-color, #167A4E);
}

/* Header: Clean - Simple header with basic info */
.header-clean.business-profile .profile-top {
    padding: 1rem;
}

.header-clean.business-profile .description {
    border-bottom: none;
}

/* Header: Featured - Highlighted header with accent */
.header-featured.business-profile .profile-top {
    background-color: var(--business-accent-color, #E5924A);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.header-featured.business-profile .profile-top p,
.header-featured.business-profile .profile-top strong {
    color: white !important;
}

.header-featured.business-profile .logo-container img {
    border-color: white !important;
}

/* Header: Boxed - Contained in a card box */
.header-boxed.business-profile .profile-top {
    border: 2px solid var(--business-border-color, #e5e7eb);
    border-radius: 16px;
    padding: 2rem;
}

/* Spacing: Compact */
.spacing-compact.business-profile {
    padding: 0.5rem;
}

.spacing-compact.business-profile .profile-top {
    margin-bottom: 1rem;
    gap: 1rem;
}

.spacing-compact.business-profile .logo-container img {
    width: 80px;
    height: 80px;
}

.spacing-compact.business-profile .info-container p {
    font-size: 1rem;
    margin: 0.3rem 0;
}

/* Spacing: Normal */
.spacing-normal.business-profile {
    padding: 1.5rem;
}

.spacing-normal.business-profile .profile-top {
    margin-bottom: 2rem;
    gap: 2rem;
}

.spacing-normal.business-profile .logo-container img {
    width: 200px;
    height: 200px;
}

/* Spacing: Spacious */
.spacing-spacious.business-profile {
    padding: 3rem;
}

.spacing-spacious.business-profile .profile-top {
    margin-bottom: 3rem;
    gap: 3rem;
}

.spacing-spacious.business-profile .logo-container img {
    width: 250px;
    height: 250px;
}

.spacing-spacious.business-profile .info-container p {
    font-size: 1.4rem;
    margin: 1rem 0;
}

/* Card: Flat - No shadow, clean edges */
.card-flat.business-profile .profile-top,
.card-flat.business-profile .description {
    border: 1px solid var(--business-border-color, #e5e7eb);
    border-radius: 8px;
}

/* Card: Rounded - Soft rounded corners */
.card-rounded.business-profile .profile-top,
.card-rounded.business-profile .description {
    border-radius: 16px;
}

.card-rounded.business-profile .logo-container img {
    border-radius: 16px;
}

/* Card: Shadowed - Drop shadow effect */
.card-shadowed.business-profile .profile-top,
.card-shadowed.business-profile .description {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-shadowed.business-profile .logo-container img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Card: Elevated - Prominent shadow depth */
.card-elevated.business-profile .profile-top,
.card-elevated.business-profile .description {
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
}

.card-elevated.business-profile .logo-container img {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Typography: Classic */
.type-classic.business-profile,
.type-classic.business-profile .info-container,
.type-classic.business-profile .description {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.type-classic.business-profile .info-container p,
.type-classic.business-profile .description p {
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Typography: Modern */
.type-modern.business-profile,
.type-modern.business-profile .info-container,
.type-modern.business-profile .description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.type-modern.business-profile .info-container p,
.type-modern.business-profile .description p {
    font-weight: 300;
    letter-spacing: -0.5px;
}

/* Typography: Bold */
.type-bold.business-profile,
.type-bold.business-profile .info-container,
.type-bold.business-profile .description {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.type-bold.business-profile .info-container p,
.type-bold.business-profile .description p {
    font-weight: 800;
    letter-spacing: 1px;
}

/* Typography: Elegant */
.type-elegant.business-profile,
.type-elegant.business-profile .info-container,
.type-elegant.business-profile .description {
    font-family: 'Lora', 'Georgia', serif;
}

.type-elegant.business-profile .info-container p,
.type-elegant.business-profile .description p {
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
}

/* Business Profile Colors */
.business-profile {
    color: var(--business-text-color, #333333);
}

.business-profile h3,
.business-profile .description h3 {
    color: var(--business-heading-color, #167A4E);
}

.business-profile #see-products-btn {
    background-color: var(--business-button-bg-color, #E5924A) !important;
    color: var(--business-button-text-color, #333) !important;
}

.business-profile #see-products-btn:hover {
    background-color: var(--business-accent-color, #D47A38) !important;
}

/* Profile Top */
.profile-top {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.logo-container img {
    width: 300px;
    height: 300px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--business-border-color, #e0e0e0);
}

/* Info Section */
.info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-container p {
    font-size: 1.3rem;
    margin: 0.7rem 0;
}

.info-container strong {
    color: #2c3e50;
}

/* Business owner info form */
.business-info label {
  display: flex;
  flex-direction: column;   /* stack label above input */
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

.business-info label strong {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #167A4E; /* your theme green */
}

.business-info input {
  padding: 0.6rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.business-info input:focus {
  border-color: #167A4E;
  box-shadow: 0 0 6px rgba(22, 122, 78, 0.3);
  outline: none;
}

.business-info input[disabled] {
  background-color: #f1f5f9;
  color: black;
  cursor: not-allowed;
}


/* Description */
.description {
    margin-bottom: 2.5rem;
}

.description h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: black;
}

.description p {
    font-size: 1.1rem;
    color: #555;
}

#business-description {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

@media(max-width: 850px){
    .description p {
        font-size: 1rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Button */
#see-products-btn {
    align-self: flex-start; /* aligns to the left inside info-container */
    margin-top: 1.5rem;
    background-color: #E5924A;
    color: black;
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#see-products-btn:hover {
    background-color: #D47A38;
    transform: translateY(-2px);
}

/* Reviews */
#reviews {
    border-top: 2px solid #e0e0e0;
    padding-top: 2rem;
    margin-top: 2rem;
}

#reviews h2 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-top {
        flex-direction: column;
        align-items: center;
    }

    .logo-container img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .info-container {
        align-items: center;
        text-align: center;
    }

    .info-container p {
        font-size: 1.1rem;
    }

    #see-products-btn {
        width: 100%;
        text-align: center;
    }
}

/* Business Owner Page */
/* Business Owner Page Redesign */
.business-owner-page {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* ================= THEME CUSTOMIZATION STYLES ================= */
.theme-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.theme-card h3 {
  font-size: 1.6rem;
  color: #167A4E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-subtitle {
  color: #666;
  margin-bottom: 25px;
  font-size: 1rem;
}

.theme-sections {
  display: grid;
  gap: 30px;
}

.theme-section {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px;
  border: 1.5px solid #e5e7eb;
}

.theme-section h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

/* Color Pickers */
.color-row {
  margin-bottom: 18px;
}

.color-row label {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.color-label {
  font-weight: 600;
  color: #444;
  min-width: 180px;
}

.color-row input[type="color"] {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-row input[type="color"]::-webkit-color-swatch {
  border: 2px solid #ddd;
  border-radius: 8px;
}

.color-value {
  font-family: monospace;
  font-size: 1rem;
  color: #666;
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Banner Section */
.banner-preview {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  border: 2px dashed #cbd5e1;
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#banner-placeholder {
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

#banner-placeholder i {
  font-size: 2.5rem;
}

.banner-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #167A4E;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: #135D3D;
  transform: translateY(-2px);
}

.banner-upload input[type="file"] {
  display: none;
}

#banner-filename {
  color: #666;
  font-size: 0.95rem;
}

.banner-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.banner-options select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center;
  background-size: 18px;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  max-width: 250px;
}

/* Layout Options */
.layout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.layout-option {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.layout-option input[type="radio"] {
  display: none;
}

.layout-preview {
  width: 100%;
  aspect-ratio: 16/10;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.layout-option input[type="radio"]:checked + .layout-preview {
  border-color: #167A4E;
  box-shadow: 0 0 0 3px rgba(22, 122, 78, 0.2);
}

.layout-box {
  background: #167A4E;
  border-radius: 4px;
}

.layout-box.header {
  height: 15%;
}

.layout-content {
  flex: 1;
  display: flex;
  gap: 6px;
}

.layout-content.modern {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.layout-content.minimal {
  flex-direction: row;
  padding: 8px;
}

.layout-box.logo {
  width: 25%;
  height: 100%;
}

.layout-box.logo-lg {
  width: 50%;
  height: 50%;
  border-radius: 50%;
}

.layout-box.logo-sm {
  width: 20%;
  height: 60%;
  border-radius: 50%;
}

.layout-box.text {
  flex: 1;
  height: 100%;
}

.layout-box.text-full {
  width: 75%;
  height: 100%;
}

.layout-option span {
  font-weight: 600;
  color: #444;
}

/* Theme Actions */
.theme-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #e5e7eb;
  flex-wrap: wrap;
}

.theme-actions button {
  flex: 1;
  min-width: 150px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.preview-btn {
  background: #f3f4f6;
  color: #333;
  border: 2px solid #e5e7eb !important;
}

.preview-btn:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.save-btn {
  background: #167A4E;
  color: white;
}

.save-btn:hover {
  background: #135D3D;
  transform: translateY(-2px);
}

.reset-btn {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca !important;
}

.reset-btn:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

/* Preview Container Styles */
.preview-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.preview-banner {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.preview-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.preview-banner-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.preview-banner-content h2 {
  margin: 0;
  font-size: 1.5rem;
}

.preview-content {
  padding: 24px;
}

.preview-logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.preview-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #ddd;
}

.preview-info h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.preview-info p {
  margin: 0;
  color: #666;
}

.preview-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
}

/* Banner Height Classes for Preview */
.banner-height-small .preview-banner {
  height: 150px;
}

.banner-height-medium .preview-banner {
  height: 200px;
}

.banner-height-large .preview-banner {
  height: 280px;
}

.banner-height-extra-large .preview-banner {
  height: 350px;
}

/* Responsive */
@media (max-width: 768px) {
  .theme-card {
    padding: 20px;
  }
  
  .theme-card h3 {
    font-size: 1.3rem;
  }
  
  .layout-options {
    grid-template-columns: 1fr;
  }
  
  .theme-actions {
    flex-direction: column;
  }
  
  .theme-actions button {
    width: 100%;
  }
  
  .color-row label {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Card-style container for logo + info */
.owner-card {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background-color: #f9fafb;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 30px 25px;
  align-items: center;
}

/* Left Column: Logo */
.owner-card .left-column {
  flex: 1 1 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.owner-card .left-column img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #167A4E;
  box-shadow: 0 4px 12px rgba(22,122,78,0.5);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.owner-card .left-column img:hover {
  transform: scale(1.05);
}

/* Logo container with edit overlay */
.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  display: block;
}

/* Logo edit overlay */
.logo-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-container:hover .logo-edit-overlay {
  opacity: 1;
}

.logo-edit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  color: #333;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-edit-btn:hover {
  background: #f0fdf4;
  color: #167A4E;
  transform: scale(1.05);
}

/* Logo preview container */
.logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-preview img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  object-fit: cover;
}

.cancel-logo-btn {
  padding: 8px 16px;
  background: #f3f4f6;
  color: #666;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-logo-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Right Column: Info Fields */
.owner-card .right-column {
  flex: 2 1 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column .business-info-fields label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 1rem;
  color: #167A4E;
}

.right-column .business-info-fields input {
  padding: 12px 14px;
  margin-top: 4px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.right-column .business-info-fields input:focus {
  border-color: #167A4E;
  box-shadow: 0 0 6px rgba(22,122,78,0.3);
  outline: none;
}

/* Action Buttons: Horizontal */
.right-column .action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.action-buttons button {
  flex: 1 1 120px;
  padding: 12px 0;
  background-color: #E5924A;
  color: black;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.action-buttons button:hover {
  background-color: #D47A38;
  transform: translateY(-2px);
}

/* Business Description Card */
.description-card {
  margin-top: 30px;
  background-color: #fff;
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.description-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #167A4E;
}

.description-card .editable-description {
  min-height: 120px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 18px;
  background-color: #fefefe;
  font-size: 1rem;
  line-height: 1.5;
  overflow-y: auto;
  white-space: pre-wrap;
  outline-offset: 2px;
}

.description-card .editable-description[contenteditable="true"] {
  border-color: #167A4E;
  outline: none;
}

#save-btn {
  margin-top: 15px;
  padding: 12px 22px;
  background: #E5924A;
  color: black;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: none;
}

#save-btn:hover {
  background: #D47A38;
  transform: translateY(-2px);
}

/* Responsive */
@media(max-width: 800px) {
  .owner-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .right-column {
    width: 100%;
    align-items: center;
  }

  .action-buttons {
    justify-content: center;
  }
}

/*Products page for owner*/
/* Edit Product Button */
.edit-product-btn {
  padding: 10px 18px;
  background: #ff9800; /* blue color */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 12px;  
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

/* Hover effect */
.edit-product-btn:hover {
  background: #D47A38; /* slightly darker blue */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Active / click effect */
.edit-product-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Disabled state (optional) */
.edit-product-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

/* Modal Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Show modal */
.modal.show {
  display: flex;
}

/* Modal Content */
.modal-content {
  background: #fefefe;
  width: 90%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px; /* spacing between elements */
  font-family: 'Lora', serif;
}

/* Title inside modal-content */
.modal-content h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #167A4E;
  text-align: center;
}

/* Inputs inside modal-content */
.modal-content input[type="text"],
.modal-content input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="number"]:focus {
  border-color: #167A4E;
}

/* File input label inside modal-content */
.modal-content .file-label {
  display: block;
  padding: 10px;
  text-align: center;
  background: #f3f4f6;
  border-radius: 8px;
  border: 1px dashed #94a3b8;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
  font-size: 0.95rem;
  color: #334155;
}

.modal-content .file-label:hover {
  background: #e0e7ff;
  border-color: #167A4E;
}

/* Buttons inside modal-content */
.modal-content .modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-content .modal-actions button {
  flex: 1 1 calc(33% - 8px);
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-content .modal-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Specific Buttons */
.modal-content #save-product-btn {
  background: #167A4E;
  color: white;
}

.modal-content #delete-product-btn {
  background: #ef4444;
  color: white;
}

.modal-content #cancel-edit-btn {
  background: #f3f4f6;
  color: #374151;
}

/* Close button inside modal-content */
.modal-content .close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #374151;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-content .close:hover {
  background: #e5e7eb;
}

/* Mobile adjustments */
@media (max-width: 400px) {
  .modal-content .modal-actions button {
    flex: 1 1 100%;
  }
}

/* Animation */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/*Products page*/
.products-page {
  padding: 20px;
}

.business-header-p {
  text-align: center;
  margin: 40px 0 30px 0;
}

.business-header-p h2 {
  margin: 8px 0;
  line-height: 1.3;
}

.business-header-p h2:first-child {
  font-size: 2em;
  font-weight: 700;
  color: #167A4E;   /* brand green for business name */
}

.business-header-p h2:last-child {
  font-size: 1.3em;
  font-weight: 500;
  color: #555;      /* softer gray for subtitle */
  text-transform: uppercase;
  letter-spacing: 2px;
}

#product-filter {
  -webkit-appearance: none; /* remove default arrow in Chrome/Safari */
  -moz-appearance: none;    /* remove default arrow in Firefox */
  appearance: none;         /* remove default arrow */

  background: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') 
              no-repeat right 10px center;
  background-size: 16px;

  padding: 8px 35px 8px 12px; /* left, top/bottom, right spacing */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
  transition: border 0.3s ease;
}

#product-filter:focus {
  border-color: #167A4E; /* green border */
  outline: none;
}

.filter-container {
  display: flex;
  justify-content: center;  /* centers horizontally */
  align-items: center;      /* aligns label + select vertically */
  gap: 10px;                /* spacing between label and select */
  margin: 20px 0;
}

.grid-view {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 16px rgba(0,0,0,0.12);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.product-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  background-color: #fdfdfd;
  margin-bottom: 12px;
}

.product-info {
  text-align: center;
  width: 100%;
}

.product-info h3 {
  margin: 5px 0;
  font-size: 1.05em;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.details {
  font-size: 0.85em;
  color: #666;
  margin: 8px 0;
  padding: 0 10px;
  line-height: 1.4;
  text-align: center;

  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  display: box;
  -webkit-box-orient: vertical;
  box-orient: vertical;

  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.price {
  font-size: 1em;
  font-weight: bold;
  color: #2d2d2d;
  margin: 8px 0;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.rating i {
  font-size: 0.9em;
  color: #f4c150;
}

.rating-count {
  font-size: 0.8em;
  color: #555;
}

.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75em;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tag.online {
  background-color: #2196f3;
}

.tag.physical {
  background-color: #ff9800;
}

.tag.service {
  background-color: #8b5cf6;
}

/* Add Products Owner Page */
.business-owner-container {
  padding-top: 20px;
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 80px;
}

.business-owner-container .right-column {
  max-width: 520px;
  width: 100%;
}

.color-variant-row {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: 12px;
}

.color-variant-row:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 24px rgba(22, 122, 78, 0.12);
}

.remove-variant {
  margin-left: auto; 
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.remove-variant:hover {
  background: #167A4E;
  transform: scale(1.05);
}

.remove-variant:active {
  transform: scale(0.95);
}

.product-type {
  -webkit-appearance: none; /* remove default arrow in Chrome/Safari */
  -moz-appearance: none;    /* remove default arrow in Firefox */
  appearance: none;         /* remove default arrow */
  background: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
  background-size: 16px;
  padding: 10px 35px 10px 12px; /* keep consistent padding */
  border: 1.8px solid #cbd5e1;
  border-radius: 12px;

  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.product-type:focus {
  border-color: #167A4E;
}

.button-row {
  margin-bottom: 60px;
}

#add-product-btn {
  background-color: #E5924A;
  color: black;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  display: flex;
  margin-left: auto;
  justify-content: center;
  align-items: center;
}

#add-product-btn:hover {
  background-color: #D47A38;
  transform: translateY(-2px);
}

.upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-box:hover {
  border-color: #167A4E;
  background: #f9fafb;
}

.upload-icon {
  font-size: 28px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.upload-btn {
  background-color: #16a34a; /* blue */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-btn:hover {
  background-color: #15803d;
}

.video-btn {
  background-color:  #2563eb;
}

.video-btn:hover {
  background-color: #1e40af;
}

.preview-section {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.preview-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #167A4E;
  letter-spacing: 0.02em;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 20px;
}

.preview-item {
  width: 100px; /* smaller thumbnail */
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
}

.preview-grid img,
.preview-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s ease; 
}

.preview-grid img:hover,
.preview-grid video:hover {
  transform: scale(1.05);
}

.preview-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.preview-grid video:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.preview-grid video::before {
  content: '▶';
  position: absolute;
  font-size: 24px;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.preview-grid video::-webkit-media-controls {
  display: none !important;
}

.media-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.media-modal img,
.media-modal video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.media-modal.hidden {
  display: none;
}

#modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
}

/* Modern Input & Textarea Styling */
.right-column input,
.right-column textarea,
.right-column select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background-color: #fdfdfd;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Hover effect */
.business-owner-container .right-column input:hover,
.business-owner-container .right-column textarea:hover,
.business-owner-container .right-column select:hover {
  border-color: #16a34a; /* subtle green on hover */
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.1);
}

/* Focus effect */
.business-owner-container .right-column input:focus,
.business-owner-container .right-column textarea:focus,
.business-owner-container .right-column select:focus {
  border-color: #167A4E;
  box-shadow: 0 0 8px rgba(22,122,78,0.3);
  outline: none;
}

/* Placeholder styling */
.right-column input::placeholder,
.right-column textarea::placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* Textarea specific */
.right-column textarea {
  min-height: 120px;
  resize: vertical;
}

/* File input inside upload-box (optional, improved) */
.right-column input[type="file"] {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fdfdfd;
}

.right-column input[type="file"]:hover {
  border-color: #167A4E;
  background-color: #f9fafb;
}

.right-column label {
  display: block;
  font-weight: 600;
  color: #167A4E;  /* same green as your theme */
  font-size: 1rem;
  margin: 16px 0 6px;
}


@media (max-width: 600px) {

  .business-owner-container {
    padding: 12px;
    padding-bottom: 100px;
  }

  .right-column {
    max-width: 100%;
  }

  .right-column input,
  .right-column textarea,
  .right-column select {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .upload-box {
    padding: 20px;
  }

  .upload-content p {
    font-size: 0.9rem;
  }

  .upload-content small {
    font-size: 0.8rem;
  }

  .upload-btn {
    width: 100%;
    padding: 12px;
  }

  #add-product-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
  }

  .preview-section {
    margin-top: 22px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid img,
  .preview-grid video {
    max-width: 100%;
    aspect-ratio: auto;
  }

  label {
    font-size: 0.95rem;
  }

  .delivery-time-row {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .business-owner-container {
    padding-top: 10px;
  }
}

/* Color variant choose image button */
.choose-color-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;

  border: none;
  border-radius: 10px;
  padding: 8px 14px;

  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  cursor: pointer;
  transition: 
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.choose-color-image-btn:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(22, 122, 78, 0.25);
}

.choose-color-image-btn:active {
  transform: scale(0.96);
  box-shadow: 0 3px 8px rgba(22, 122, 78, 0.2);
}


.color-preview-item {
  position: relative;
}

.color-preview-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.remove-image {
  position: absolute;
  top: -6px;
  right: -6px;

  width: 20px;
  height: 20px;

  background: #dc2626;
  color: white;

  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.remove-image:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.online-options {
  margin-top: 18px;
  padding: 14px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
}

.online-options label {
  display: block;
  font-weight: 600;
  color: #167A4E;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Delivery type radio / select row */
.delivery-type-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

/* Custom delivery time input row */
.delivery-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}

/* Number input styling */
#delivery-time-value {
  text-align: center;
  font-weight: 600;
  padding: 8px 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  margin-right: 5px;
}

/* Select styling */
#delivery-time-unit {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;

  padding: 8px 12px;
  padding-right: 38px; /* space for arrow */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  margin-left: 5px;
}

/* Existing images container for edit product modal */
.existing-images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* Image preview container with X button */
.edit-image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.edit-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Hide container by default (JS toggle) */
#delivery-time-container {
  display: none;
}

#delivery-type {
  -webkit-appearance: none;  /* remove default arrow */
  -moz-appearance: none;
  appearance: none;

  background-color: #f9fafb;  /* match container/background */
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;          /* left/right padding */
  padding-right: 36px;        /* space for arrow */
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 10px;

  background-image: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;  /* right spacing for arrow */
  background-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Hover/focus effect */
#delivery-type:hover,
#delivery-type:focus {
  border-color: #167A4E;
  outline: none;
}

/* Physical Product Delivery Time Row */
#delivery-time-container-physical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
  align-items: center;
}

#delivery-time-container-physical label {
  grid-column: 1 / -1; /* label spans both columns */
  font-weight: 600;
  color: #167A4E;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

#delivery-time-value-physical {
  text-align: center;
  font-weight: 600;
  padding: 8px 6px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

#delivery-time-unit-physical {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;

  padding: 8px 12px;
  padding-right: 38px; /* space for arrow */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}



/* ================= ORDER PAGE IMPROVEMENTS ================= */

/* Enhanced Order Page Container */
.order-container {
  background: #f8fafb;
  padding: 40px 20px 80px;
}

.order-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; /* Changed from grid to flex for better control */
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Left section (product info) - takes more space */
.order-product {
  flex: 2;
  min-width: 0;
  padding: 32px 32px 48px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Each section inside .order-product is a distinct card with generous spacing */
.order-product > * {
  margin-bottom: 40px;
}

.order-product > *:last-child {
  margin-bottom: 0;
}

/* ================= ONLINE SECTION VISIBILITY ================= */
.hidden-online {
  display: none !important;
}

/* Right section (order summary) - takes less space, sticky */
.order-summary {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-ratings-wrapper {
  max-width: 1280px;
  margin: 40px auto 0;
}

/* Product image */
.order-main-image {
    width: 100%;
    border-radius: 16px;
    object-fit: contain;
    aspect-ratio: 4/3;
    background: #f9fafb;
}

/* Quantity */
.quantity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #167A4E 0%, #16a34a 100%);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: linear-gradient(135deg, #135D3D 0%, #15803d 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.3);
}

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

.quantity-value {
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 40px;
  text-align: center;
  color: #333;
}

/* Enhanced select styling */
.order-summary select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 14px center;
  background-size: 18px;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  padding-right: 40px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  font-size: 1rem;
  background-color: #f9fafb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.order-summary select:hover {
  border-color: #cbd5e1;
  background-color: #fff;
}

.order-summary select:focus {
  outline: none;
  border-color: #167A4E;
  box-shadow: 0 0 0 3px rgba(22, 122, 78, 0.15);
  background-color: #fff;
}

/* Order page textarea inputs */
.order-summary textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  font-size: 1rem;
  resize: vertical;
  background-color: #f9fafb;
  transition: all 0.3s ease;
  font-family: inherit;
}

.order-summary textarea:focus {
  outline: none;
  border-color: #167A4E;
  box-shadow: 0 0 0 3px rgba(22, 122, 78, 0.15);
  background-color: #fff;
}

/* Specific details box (digital products) */
.order-summary textarea {
  min-height: 130px;
}

/* Order buttons - Enhanced */
.order-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #E5924A 0%, #f97316 100%);
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#add-to-cart-btn:hover {
    background: linear-gradient(135deg, #D47A38 0%, #ea580c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 146, 74, 0.35);
}

.place-order-btn {
  background: linear-gradient(135deg, #167A4E 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.place-order-btn:hover {
  background: linear-gradient(135deg, #135D3D 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 122, 78, 0.35);
}

.order-price {
  font-size: 2rem;
  font-weight: 800;
  color: #167A4E;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.order-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .order-wrapper {
    flex-direction: row;
    gap: 20px;
    padding: 20px;
  }
  
  .order-product {
    flex: 1.5;
  }
  
  .order-summary {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 900px) {
  .order-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .order-product {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .order-summary {
    order: 2;
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .order-container {
    padding: 12px;
  }

  .order-wrapper {
    padding: 12px;
    gap: 16px;
  }

  .order-product,
  .order-summary {
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
  }

  .order-price {
    font-size: 1.5rem;
  }

  .add-to-cart-btn,
  .place-order-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* Hide mobile product name by default (desktop) */
#product-name-mobile {
  display: none;
}

/* Show desktop product name by default */
.order-summary h2 {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  text-transform: capitalize;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .order-container {
    padding: 12px;
  }

  .order-product,
  .order-summary {
    padding: 18px;
  }

  .order-price {
    font-size: 1.5rem;
  }

  /* Mobile product name - shown above description only on mobile */
  #product-name-mobile {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    text-transform: capitalize;
    line-height: 1.3;
  }

  /* Hide the original product name in order-summary on mobile */
  .order-summary h2 {
    display: none;
  }
}

/* ===== ENHANCED PRODUCT INFO SECTION ===== */

/* Breadcrumb */
.order-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 10px;
}

.order-breadcrumb a {
  color: #167A4E;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.order-breadcrumb a:hover {
  color: #135D3D;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #9ca3af;
  font-weight: 600;
}

/* Enhanced Image Gallery */
.order-image-gallery {
  margin-bottom: 24px;
}

.main-image-container {
  position: relative;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  background: #f9fafb;
}

.main-image-container:hover .zoom-hint {
  opacity: 1;
}

.zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.order-image-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding: 8px 4px;
  scrollbar-width: thin;
}

.order-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.order-thumb:hover {
  transform: scale(1.08);
  border-color: #16a34a;
}

.order-thumb.active {
  border-color: #167A4E;
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.25);
}

/* Enhanced Seller Information */
.order-seller-info {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

/* Sub-section layout inside seller info */
.order-seller-info .seller-info-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(22, 122, 78, 0.12);
}

.order-seller-info .seller-info-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-seller-info .seller-info-section:first-child {
  padding-top: 0;
}

/* Sub-section heading */
.seller-section-title {
  font-size: 0.85rem;
  color: #167A4E;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.seller-section-title i {
  font-size: 0.9rem;
}

.order-seller-info h3 {
  font-size: 1.1rem;
  color: #167A4E;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.seller-details {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  cursor: pointer;
}

.seller-details:hover .seller-name {
  color: #167A4E;
}

.seller-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.25);
}

.seller-logo img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.seller-text {
  flex: 1;
  min-width: 160px;
}

.seller-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.05rem;
  display: block;
  transition: color 0.2s ease;
}

.seller-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-rating .stars {
  color: #f4c150;
  display: flex;
  gap: 2px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.seller-rating .stars i {
  font-size: 0.85rem;
}

.seller-rating .rating-text {
  color: #6b7280;
  font-size: 0.9rem;
}

.contact-seller-btn {
  background: #167A4E;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.contact-seller-btn:hover {
  background: #135D3D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.3);
}

/* Enhanced Product Details */
.order-product-details {
  margin-bottom: 20px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.order-product-details h3 {
  font-size: 1.1rem;
  color: #167A4E;
  margin-bottom: 16px;
  font-weight: 700;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
}

.detail-item i {
  color: #167A4E;
  width: 22px;
  font-size: 1rem;
}

.detail-label {
  color: #6b7280;
  font-weight: 500;
}

.detail-value {
  color: #1f2937;
  font-weight: 600;
  margin-left: auto;
}

.detail-value .in-stock {
  color: #16a34a;
}

.detail-value .out-of-stock {
  color: #dc2626;
}

/* Enhanced Rating Summary in Order Summary */
.order-rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 14px;
  background: #fefce8;
  border-radius: 12px;
  border: 1px solid #fef08a;
}

.rating-stars-large {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.rating-stars-large i {
  color: #f4c150;
  font-size: 1.1rem;
}

.rating-value {
  font-weight: 800;
  font-size: 1.2rem;
  color: #1f2937;
}

.rating-count-text {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Enhanced Social Actions (Wishlist & Share) */
.order-social-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.wishlist-btn,
.share-btn {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.wishlist-btn:hover,
.share-btn:hover {
  border-color: #167A4E;
  background: #f0fdf4;
  transform: translateY(-2px);
}

.wishlist-btn i,
.share-btn i {
  font-size: 1.1rem;
}

.wishlist-btn.active {
  border-color: #e74c3c;
  color: #e74c3c;
  background: #fef2f2;
}

/* Enhanced Share Menu */
.share-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.share-menu.active {
  display: flex;
  animation: slideDown 0.3s ease;
}

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

.share-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: left;
}

.share-menu button:hover {
  background: #f0fdf4;
  transform: translateX(4px);
}

.share-menu button i {
  width: 22px;
  color: #167A4E;
  font-size: 1.1rem;
}

/* Enhanced Trust Badges - Now more prominent */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: center;
  padding: 14px 10px;
  background: #f9fafb;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
}

.trust-badge i {
  color: #167A4E;
  font-size: 1.5rem;
}

/* Enhanced Ratings Section */
.order-ratings {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
  background: white;
  border-radius: 16px;
  padding: 24px;
}

.order-ratings h3 {
  font-size: 1.4rem;
  color: #1f2937;
  margin-bottom: 20px;
  font-weight: 700;
}

.ratings-header {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rating-distribution {
  flex: 1;
  min-width: 220px;
}

.distribution-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.dist-stars {
  width: 100px;
  color: #6b7280;
  font-size: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
}

.dist-bar-container {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.dist-bar {
  height: 100%;
  background: linear-gradient(90deg, #f4c150 0%, #fbbf24 100%);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.dist-count {
  width: 35px;
  text-align: right;
  color: #6b7280;
  font-size: 0.85rem;
  margin-left: 8px;
}

.write-review-btn-container {
  display: flex;
  align-items: flex-start;
}

.write-review-btn {
  background: linear-gradient(135deg, #167A4E 0%, #16a34a 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.write-review-btn:hover {
  background: linear-gradient(135deg, #135D3D 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(22, 122, 78, 0.3);
}

/* Enhanced Rating Cards */
.rating-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  background: white;
  transition: all 0.3s ease;
}

.rating-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #bbf7d0;
}

.rating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.rating-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.rating-stars {
  color: #f4c150;
  display: flex;
  gap: 3px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.rating-stars i {
  font-size: 0.9rem;
}

.rating-date {
  font-size: 0.85rem;
  color: #9ca3af;
}

.rating-content {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

.no-reviews {
  text-align: center;
  color: #6b7280;
  padding: 40px;
  font-style: italic;
  background: #f9fafb;
  border-radius: 12px;
}

/* Enhanced Description */
.order-description {
  margin-bottom: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 14px;
}

.order-description h3 {
  color: #167A4E;
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.order-description p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .order-breadcrumb {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .seller-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-seller-btn {
    width: 100%;
    justify-content: center;
  }
  
  .order-social-actions {
    flex-direction: column;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .ratings-header {
    flex-direction: column;
  }
  
  .write-review-btn-container {
    width: 100%;
  }
  
  .write-review-btn {
    width: 100%;
    justify-content: center;
  }
  
  .order-thumb {
    width: 60px;
    height: 60px;
  }
  
  .detail-item {
    font-size: 0.9rem;
  }
  
  .trust-badge {
    font-size: 0.8rem;
    padding: 12px 8px;
  }
  
  .trust-badge i {
    font-size: 1.3rem;
  }
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #f4c150;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  min-width: 250px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: #16a34a;
  color: white;
}

.toast-error {
  background: #dc2626;
  color: white;
}

.toast-info {
  background: #3b82f6;
  color: white;
}

.toast i {
  font-size: 1.1rem;
}

/* Responsive Adjustments for Order Page */
@media (max-width: 768px) {
  .order-breadcrumb {
    font-size: 0.8rem;
  }
  
  .seller-details {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .contact-seller-btn {
    width: 100%;
    justify-content: center;
  }
  
  .order-social-actions {
    flex-direction: column;
  }
  
  .ratings-header {
    flex-direction: column;
  }
  
  .write-review-btn-container {
    width: 100%;
  }
  
  .write-review-btn {
    width: 100%;
    justify-content: center;
  }
  
  .lightbox-nav {
    padding: 12px 14px;
    font-size: 18px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  
  .toast {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .order-thumb {
    width: 50px;
    height: 50px;
  }
  
  .detail-item {
    font-size: 0.85rem;
  }
  
  .trust-badges {
    gap: 8px;
  }
  
  .trust-badge {
    font-size: 0.8rem;
  }
}

/* ================= ENHANCED THEME CUSTOMIZATION STYLES ================= */

/* Section Description */
.section-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-style: italic;
}

/* Color Groups */
.color-group {
  margin-bottom: 24px;
}

.color-group:last-child {
  margin-bottom: 0;
}

.color-group h5 {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* Layout Groups */
.layout-group {
  margin-bottom: 28px;
}

.layout-group:last-child {
  margin-bottom: 0;
}

.layout-group h5 {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* Layout Description */
.layout-desc {
  display: block;
  font-size: 0.75rem;
  color: #888;
  font-weight: normal;
  margin-top: 2px;
}

/* =========================
   Section Description
========================= */
.section-description {
  color: #666;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
}

/* =========================
   Color Groups
========================= */
.color-group {
  margin-bottom: 24px;
}

.color-group:last-child {
  margin-bottom: 0;
}

.color-group h5 {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
}

/* Color swatches grid */
.color-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Individual color box */
.color-box {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
}

/* =========================
   Layout Groups
========================= */
.layout-group {
  margin-bottom: 24px;
}

.layout-group:last-child {
  margin-bottom: 0;
}

.layout-group h5 {
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* =========================
   Layout Options
========================= */
.layout-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.layout-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.layout-option:hover {
  border-color: #16a34a;
  background: #f0fdf4;
}

/* Hide native radio */
.layout-option input[type="radio"] {
  display: none;
}

/* Selected state */
.layout-option input[type="radio"]:checked + .layout-preview {
  border-color: #16a34a;
}

/* =========================
   Layout Preview Box
========================= */
.layout-preview {
  width: 100%;
  height: 80px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.3s ease;
}

/* Layout description text */
.layout-desc {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

/* =========================
   Spacing Box
========================= */
.spacing-box {
  width: 100%;
  height: 50px;
  background: #f3f4f6;
  border-radius: 6px;
  border: 1px dashed #ccc;
}

/* =========================
   Type Preview
========================= */
.type-preview {
  display: none;
}

.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.type-option:hover {
  border-color: #16a34a;
}

/* Selected type */
.type-option input[type="radio"]:checked + .type-preview {
  display: block;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 600px) {
  .color-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-options {
    grid-template-columns: 1fr;
  }
}

/* ================= HEADER STYLE OPTIONS ================= */
.header-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #fafafa;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
  max-width: 180px;
}

.style-option:hover {
  border-color: #167A4E;
  background: #f0fdf4;
}

.style-option input[type="radio"] {
  display: none;
}

.style-option input[type="radio"]:checked ~ .style-box {
  background: #167A4E;
  color: white;
  border-color: #167A4E;
}

.style-option input[type="radio"]:checked ~ span:last-child {
  color: #167A4E;
  font-weight: 600;
}

.style-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  transition: all 0.3s ease;
}

.style-box.clean {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.style-box.featured {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.style-box.boxed {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-color: #6366f1;
}

.style-option span:last-child {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* ================= SECTION SPACING OPTIONS ================= */
.spacing-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.spacing-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fafafa;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 130px;
  max-width: 160px;
}

.spacing-option:hover {
  border-color: #167A4E;
  background: #f0fdf4;
}

.spacing-option input[type="radio"] {
  display: none;
}

.spacing-box {
  width: 100%;
  height: 60px;
  background: #f3f4f6;
  border-radius: 8px;
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  overflow: hidden;
}

.spacing-bar {
  background: linear-gradient(90deg, #167A4E 0%, #22c55e 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.spacing-option input[type="radio"]:checked ~ .spacing-box {
  border-color: #167A4E;
  border-style: solid;
}

.spacing-option input[type="radio"]:checked ~ .spacing-box .spacing-bar {
  background: linear-gradient(90deg, #E5924A 0%, #f97316 100%);
}

.spacing-option span:last-child {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* Compact spacing */
.spacing-option input[value="compact"] ~ .spacing-box .spacing-bar:nth-child(1) { height: 8px; }
.spacing-option input[value="compact"] ~ .spacing-box .spacing-bar:nth-child(2) { height: 6px; }
.spacing-option input[value="compact"] ~ .spacing-box .spacing-bar:nth-child(3) { height: 4px; }

/* Normal spacing */
.spacing-option input[value="normal"] ~ .spacing-box .spacing-bar:nth-child(1) { height: 16px; }
.spacing-option input[value="normal"] ~ .spacing-box .spacing-bar:nth-child(2) { height: 12px; }
.spacing-option input[value="normal"] ~ .spacing-box .spacing-bar:nth-child(3) { height: 8px; }

/* Spacious spacing */
.spacing-option input[value="spacious"] ~ .spacing-box .spacing-bar:nth-child(1) { height: 24px; }
.spacing-option input[value="spacious"] ~ .spacing-box .spacing-bar:nth-child(2) { height: 20px; }
.spacing-option input[value="spacious"] ~ .spacing-box .spacing-bar:nth-child(3) { height: 16px; }

/* ================= CARD STYLE OPTIONS ================= */
.card-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.card-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #fafafa;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
  max-width: 150px;
}

.card-option:hover {
  border-color: #167A4E;
  background: #f0fdf4;
}

.card-option input[type="radio"] {
  display: none;
}

.card-preview {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Flat style */
.card-preview.flat {
  border-radius: 4px;
  box-shadow: none;
  background: #f8fafc;
}

/* Rounded style */
.card-preview.rounded {
  border-radius: 16px;
  box-shadow: none;
  background: #f8fafc;
}

/* Shadowed style */
.card-preview.shadowed {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

/* Elevated style */
.card-preview.elevated {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  border: none;
}

.card-option input[type="radio"]:checked ~ .card-preview {
  border-color: #167A4E;
  color: #167A4E;
  font-weight: 700;
}

.card-option span:last-child {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* ================= TYPOGRAPHY OPTIONS ================= */
.typography-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #fafafa;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
  max-width: 160px;
}

.type-option:hover {
  border-color: #167A4E;
  background: #f0fdf4;
}

.type-option input[type="radio"] {
  display: none;
}

.type-preview {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

/* Classic typography */
.type-preview.classic {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Modern typography */
.type-preview.modern {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 300;
  letter-spacing: -0.5px;
}

/* Bold typography */
.type-preview.bold {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Elegant typography */
.type-preview.elegant {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1px;
}

.type-option input[type="radio"]:checked ~ .type-preview {
  color: #167A4E;
  transform: scale(1.05);
}

.type-option span:last-child {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* ================= LIVE PREVIEW SECTION ================= */
.live-preview-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 2px solid #e5e7eb;
}

.live-preview-section h3 {
  font-size: 1.5rem;
  color: #167A4E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-preview-section .preview-subtitle {
  color: #666;
  margin-bottom: 20px;
  font-size: 1rem;
}

.live-preview-container {
  width: 100%;
  min-height: 200px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.live-preview-container .preview-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 100%;
}

.live-preview-container .preview-banner {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.live-preview-container .preview-content {
  padding: 24px;
}

.live-preview-container .preview-logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.live-preview-container .preview-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #ddd;
  flex-shrink: 0;
}

.live-preview-container .preview-info h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.live-preview-container .preview-info p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.live-preview-container .preview-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
}

/* ================= LIVE PREVIEW LAYOUT STYLES ================= */

/* Layout: Standard */
.layout-standard .preview-container {
  background-color: var(--business-bg-color, #ffffff);
}

.layout-standard .preview-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.layout-standard .preview-logo-area {
  display: flex;
  flex-direction: row;
}

/* Layout: Modern */
.layout-modern .preview-container {
  background-color: var(--business-bg-color, #ffffff);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin: 16px auto;
  max-width: 90%;
}

.layout-modern .preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
}

.layout-modern .preview-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.layout-modern .preview-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

/* Layout: Minimal */
.layout-minimal .preview-container {
  background-color: var(--business-bg-color, #ffffff);
  padding: 16px;
}

.layout-minimal .preview-content {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 12px;
}

.layout-minimal .preview-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

/* Layout: Showcase */
.layout-showcase .preview-container {
  background-color: var(--business-bg-color, #ffffff);
  padding: 32px;
}

.layout-showcase .preview-banner {
  height: 200px;
}

.layout-showcase .preview-content {
  padding: 32px;
}

.layout-showcase .preview-logo {
  width: 140px;
  height: 140px;
  border-radius: 20px;
}

/* ================= LIVE PREVIEW HEADER STYLES ================= */

/* Header: Clean */
.header-clean .preview-content {
  padding-top: 16px;
}

.header-clean .preview-info {
  border-bottom: none;
}

/* Header: Featured */
.header-featured .preview-container {
  border-radius: 16px;
  margin: 16px auto;
  overflow: hidden;
}

.header-featured .preview-content {
  background-color: var(--business-accent-color, #E5924A);
  color: white;
  padding: 24px;
  border-radius: 16px;
  margin: 0 16px 16px;
}

.header-featured .preview-info h3,
.header-featured .preview-info p {
  color: white !important;
}

/* Header: Boxed */
.header-boxed .preview-container {
  border: 2px solid var(--business-border-color, #e5e7eb);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.header-boxed .preview-content {
  border: 2px solid var(--business-border-color, #e5e7eb);
  border-radius: 16px;
  margin: 16px;
  padding: 24px;
}

/* ================= LIVE PREVIEW SPACING STYLES ================= */

/* Spacing: Compact */
.spacing-compact .preview-content {
  padding: 12px;
}

.spacing-compact .preview-logo {
  width: 50px;
  height: 50px;
}

.spacing-compact .preview-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.spacing-compact .preview-info p {
  font-size: 0.85rem;
}

.spacing-compact .preview-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Spacing: Normal */
.spacing-normal .preview-content {
  padding: 24px;
}

.spacing-normal .preview-logo {
  width: 80px;
  height: 80px;
}

.spacing-normal .preview-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.spacing-normal .preview-info p {
  font-size: 1rem;
}

.spacing-normal .preview-btn {
  padding: 12px 28px;
  font-size: 1rem;
  margin-top: 16px;
}

/* Spacing: Spacious */
.spacing-spacious .preview-content {
  padding: 48px;
}

.spacing-spacious .preview-logo {
  width: 120px;
  height: 120px;
}

.spacing-spacious .preview-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.spacing-spacious .preview-info p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.spacing-spacious .preview-btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  margin-top: 24px;
}

/* ================= LIVE PREVIEW CARD STYLES ================= */

/* Card: Flat */
.card-flat .preview-container {
  border: 1px solid var(--business-border-color, #e5e7eb);
  border-radius: 8px;
  box-shadow: none;
}

.card-flat .preview-content {
  border-radius: 8px;
}

/* Card: Rounded */
.card-rounded .preview-container {
  border-radius: 16px;
  box-shadow: none;
}

.card-rounded .preview-content {
  border-radius: 16px;
}

.card-rounded .preview-logo {
  border-radius: 16px;
}

.card-rounded .preview-btn {
  border-radius: 16px;
}

/* Card: Shadowed */
.card-shadowed .preview-container {
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-shadowed .preview-content {
  border-radius: 16px;
}

.card-shadowed .preview-logo {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card: Elevated */
.card-elevated .preview-container {
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.20);
}

.card-elevated .preview-content {
  border-radius: 24px;
  padding: 32px;
}

.card-elevated .preview-logo {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-elevated .preview-btn {
  border-radius: 24px;
  padding: 14px 32px;
}

/* ================= LIVE PREVIEW TYPOGRAPHY STYLES ================= */

/* Typography: Classic */
.type-classic .preview-info h3,
.type-classic .preview-info p {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.type-classic .preview-info h3 {
  font-weight: 700;
}

/* Typography: Modern */
.type-modern .preview-info h3,
.type-modern .preview-info p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.type-modern .preview-info h3 {
  font-weight: 600;
}

/* Typography: Bold */
.type-bold .preview-info h3,
.type-bold .preview-info p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
}

.type-bold .preview-info h3 {
  font-size: 1.1em;
}

.type-bold .preview-btn {
  font-weight: 800;
}

/* Typography: Elegant */
.type-elegant .preview-info h3,
.type-elegant .preview-info p {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1px;
}

.type-elegant .preview-info h3 {
  font-style: italic;
}

/* Responsive for live preview */
@media (max-width: 768px) {
  .live-preview-section {
    padding: 20px;
  }
  
  .live-preview-container .preview-logo-area {
    flex-direction: column;
    text-align: center;
  }
  
  .live-preview-container .preview-btn {
    width: 100%;
    text-align: center;
  }
  
  .layout-modern .preview-logo {
    width: 100px;
    height: 100px;
  }
  
  .spacing-spacious .preview-content {
    padding: 24px;
  }
  
  .spacing-spacious .preview-logo {
    width: 80px;
    height: 80px;
  }
}

/* ================= MOBILE ENHANCEMENTS ================= */

/* Very Small Screens (360px and up) */
@media (max-width: 360px) {
    /* Header */
    header {
        padding: 0.5rem 0.75rem;
    }

    header .logo {
        font-size: 1.2rem;
    }

    /* Hero Section */
    #hero h1 {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    #hero p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Product Cards */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        min-height: 280px;
    }

    .product-card-image-wrapper {
        width: 100%;
        height: 160px;
        padding: 10px;
    }

    .product-card-image {
        width: 120px;
        height: 120px;
    }

    /* Form Elements */
    .form-container {
        width: 95%;
        padding: 1.5rem 1rem;
        margin: 1rem auto;
    }

    .form-container h1 {
        font-size: 1.5rem;
    }

    form input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    /* Buttons */
    button {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    /* Order Page */
    .order-wrapper {
        padding: 10px;
    }

    .order-thumb {
        width: 50px;
        height: 50px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* Business Owner Page */
    .owner-card {
        padding: 20px 15px;
        gap: 20px;
    }

    .owner-card .left-column img {
        width: 140px;
        height: 140px;
    }

    .action-buttons button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Theme Customization */
    .theme-card {
        padding: 15px;
    }

    .color-row label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .color-row input[type="color"] {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile (480px and up) */
@media (max-width: 480px) {
    /* Header */
    header {
        padding: 0.75rem 1rem;
    }

    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Search Container - Full width on mobile */
    #search-container {
        position: relative;
        left: auto;
        transform: none;
        margin-top: 0.75rem;
        width: 100%;
        padding: 0.5rem;
    }

    #search-container input {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    #search-container button {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    #hero h1 {
        font-size: 1.5rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    #hero button {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* Category Grid - 2 columns on small mobile */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .category-grid a {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Product Cards */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 0.5rem;
    }

    .product-card {
        min-height: 260px;
    }

    .product-card-image-wrapper {
        width: 100%;
        height: 140px;
        padding: 8px;
    }

    .product-card-image {
        width: 100px;
        height: 100px;
    }

    .product-card-content {
        padding: 10px;
    }

    .product-card-name {
        font-size: 0.9rem;
        min-height: 2.4em;
    }

    .product-card-price {
        font-size: 1rem;
    }

    /* Featured Products Section */
    #featured-products {
        padding: 2rem 0.5rem;
    }

    #featured-products h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Featured Gigs Carousel */
    .featured-gigs-section {
        padding: 20px 0;
    }

    .carousel-wrapper {
        padding: 0 10px;
        max-width: 100%;
        overflow: hidden;
    }

    .business-card {
        flex: 0 0 calc(100% - 20px);
        max-width: 100%;
        padding: 15px 10px;
        min-width: unset;
        margin: 0;
    }

    .swipe-hint {
        display: block !important;
        font-size: 12px;
    }

    /* Form Container */
    .form-container {
        width: 92%;
        padding: 2rem 1.5rem;
    }

    form button {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* About Us */
    #about-us {
        padding: 2rem 1rem;
    }

    #about-us h2 {
        font-size: 1.5rem;
    }

    #about-us p {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Medium Mobile / Small Tablets (600px and up) */
@media (max-width: 600px) {
    /* Header */
    header {
        padding: 0.75rem 1.25rem;
    }

    header .logo {
        font-size: 1.4rem;
    }

    #hero h1 {
        font-size: 1.7rem;
    }

    #hero p {
        font-size: 1.05rem;
    }

/* Product Cards - 2 columns on medium mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Featured Gigs - Keep card full width on mobile */
    .carousel-wrapper {
        padding: 0 10px;
        overflow: hidden;
    }

    .business-card {
        flex: 0 0 calc(100% - 20px);
        max-width: 100%;
        padding: 15px 10px;
    }

    /* Form Elements */
    .form-container {
        width: 85%;
    }

    /* Business List */
    .business-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    #toggleViewBtn {
        width: 100%;
        max-width: 200px;
    }

    /* Business Profile */
    .shop-header {
        padding: 20px 5%;
    }

    .shop-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .shop-info .logo-container img {
        width: 100px;
        height: 100px;
    }

    .shop-info .info-container h1 {
        font-size: 1.5rem;
    }

    .business-meta {
        justify-content: center;
    }

    .shop-actions {
        width: 100%;
        justify-content: center;
    }

    /* Order Page */
    .order-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-product,
    .order-summary {
        padding: 18px;
    }

    .order-price {
        font-size: 1.6rem;
    }

    /* Business Owner Page */
    .owner-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .owner-card .left-column img {
        width: 160px;
        height: 160px;
    }

    .owner-card .right-column {
        width: 100%;
        align-items: center;
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
    }

    .action-buttons button {
        flex: 1 1 45%;
    }

    .shop-actions {
        flex-direction: column;
    }

    .shop-btn {
        width: 100%;
    }

    /* Theme Card */
    .theme-card {
        padding: 20px;
    }

    .color-options {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Products Page */
    .business-header-p {
        margin: 30px 0 20px 0;
    }

    .business-header-p h2:first-child {
        font-size: 1.6em;
    }

    .business-header-p h2:last-child {
        font-size: 1.1em;
    }

    .grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Tablets (768px and up) */
@media (max-width: 768px) {
    /* Category Grid - 3 columns on tablet */
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Product Cards - 3 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    /* Business List */
    #businesses.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* Order Page */
    .order-product,
    .order-summary {
        border-radius: 12px;
    }

    /* Modal Content */
    .modal-content {
        width: 95%;
        padding: 24px 20px;
    }

    .modal-content .modal-actions {
        gap: 10px;
    }

    .modal-content .modal-actions button {
        flex: 1 1 30%;
        padding: 10px;
    }

    /* Products Page */
    .filter-container {
        flex-direction: column;
        gap: 8px;
    }

    /* Business Owner - Theme Sections */
    .theme-sections {
        gap: 20px;
    }

    .theme-section {
        padding: 18px;
    }

    /* Welcome Banner */
    .welcome-banner {
        padding: 24px;
    }

    .welcome-content h2 {
        font-size: 1.4rem;
    }

    .welcome-actions {
        flex-direction: column;
    }

    .welcome-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Large Tablets / Small Laptops (900px and up) */
@media (max-width: 900px) {
/* Product Cards */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    /* Business Profile */
    .products-section {
        padding: 24px 3%;
    }

    /* Business Owner Page */
    .owner-card {
        flex-wrap: wrap;
    }

    .owner-card .left-column {
        flex: 1 1 100%;
    }

    .owner-card .right-column {
        flex: 1 1 100%;
    }
}

/* ================= TOUCH TARGET IMPROVEMENTS ================= */

/* Ensure minimum 44px touch targets for better mobile UX */
@media (max-width: 768px) {
    button,
    .gig-button,
    .login-btn,
    #logout-button,
    .shop-action-btn,
    .shop-btn,
    .action-buttons button,
    .welcome-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Category links */
    .category-grid a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Form inputs - better padding for touch */
    form input,
    form select,
    .form-container input,
    .form-container select {
        min-height: 48px;
        padding: 14px 16px;
    }

    /* Links in navigation */
    .mobile-nav-menu a {
        padding: 14px 16px;
        min-height: 44px;
    }

    /* Quantity buttons */
    .quantity-btn {
        width: 40px;
        height: 40px;
    }

    /* Thumbnail images */
    .order-thumb {
        width: 60px;
        height: 60px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ================= SPACING CONSISTENCY ================= */

@media (max-width: 768px) {
    /* Consistent vertical spacing */
    section {
        padding: 2rem 1rem;
    }

    .featured-gigs-section {
        padding: 24px 0;
    }

    #featured-products {
        padding: 2rem 1rem;
    }

    /* Consistent horizontal padding */
    main {
        padding: 0 1rem;
    }

    .business-profile {
        padding: 0 3%;
    }

    .products-page {
        padding: 16px;
    }

    .order-container {
        padding: 16px;
    }

    .business-owner-page {
        padding: 0 1rem;
    }
}

/* ================= ACCESSIBILITY IMPROVEMENTS ================= */

@media (max-width: 768px) {
    /* Focus states for touch targets */
    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #E5924A;
        outline-offset: 2px;
    }

    /* Skip link for keyboard navigation (add to HTML) */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: #000;
        color: white;
        padding: 8px 16px;
        z-index: 10000;
        transition: top 0.3s;
    }

    .skip-link:focus {
        top: 0;
    }

    /* Reduced motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ================= DARK MODE SUPPORT (Optional) ================= */

@media (prefers-color-scheme: dark) {
    /* Uncomment below to enable dark mode support */
    /*
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .product-card,
    .business-card,
    .form-container,
    .order-product,
    .order-summary {
        background-color: #2d2d2d;
        color: #f0f0f0;
    }
    */
}

/* ================= PRINT STYLES ================= */

@media print {
    header,
    footer,
    .swipe-hint,
    .shop-actions,
    .order-actions {
        display: none !important;
    }

    .order-wrapper {
        display: block;
    }

    .order-product,
    .order-summary {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ================= MOBILE WHITE STRIP FIX ================= */
/* Fix for white strips on sides of sections on mobile/small screens */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #hero,
    #hero,
    .featured-gigs-section,
    #featured-products {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure header also extends full width */
    header {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Fix carousel wrapper to not cause horizontal scroll */
    .carousel-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Fix products grid */
    .products-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Fix category grid */
    .category-grid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure main also full width */
    main {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Fix any potential horizontal scroll from carousel or other elements */
    .carousel {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -ms-overflow-style: none !important;  /* IE and Edge */
        scrollbar-width: none !important;  /* Firefox */
    }
    
    .carousel::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Ensure all direct children of body don't cause overflow */
    body > * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Footer fix */
    footer {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* About us section fix */
    #about-us {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Categories section fix */
    #categories {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ================= SKELETON LOADING STATES ================= */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Business card skeleton */
.business-card.skeleton .skeleton-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 12px;
}

.business-card.skeleton .skeleton-text {
    height: 16px;
    background: #ddd;
    margin: 8px auto;
    border-radius: 4px;
}

.business-card.skeleton .skeleton-text.title {
    width: 70%;
    height: 20px;
}

.business-card.skeleton .skeleton-text.short {
    width: 50%;
}

.business-card.skeleton h3,
.business-card.skeleton p {
    display: none;
}

/* Product card skeleton */
.product-card.skeleton .skeleton-image {
    width: 100px;
    height: 100px;
    background: #ddd;
    margin: 20px auto;
    border-radius: 10px;
}

.product-card.skeleton .skeleton-text {
    height: 14px;
    background: #ddd;
    margin: 10px auto;
    border-radius: 4px;
}

.product-card.skeleton .skeleton-text.title {
    width: 80%;
    height: 18px;
    margin-top: 15px;
}

.product-card.skeleton .skeleton-text.subtitle {
    width: 60%;
}

.product-card.skeleton .skeleton-text.price {
    width: 40%;
    margin-top: 15px;
}

.product-card.skeleton .product-card-image-wrapper,
.product-card.skeleton .tag,
.product-card.skeleton .product-card-content h3,
.product-card.skeleton .product-card-content p,
.product-card.skeleton .product-card-footer {
    display: none;
}

/* ================= ENHANCED BUSINESS PAGE (AMAZON-STYLE) ================= */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 5%;
  background: #f9fafb;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #167A4E;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #135D3D;
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #999;
}

/* Shop Header */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 5%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 20px;
}

.shop-info {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-info .logo-container img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shop-info .info-container h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  text-transform: capitalize;
}

.business-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.business-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.95rem;
}

.business-meta i {
  color: #167A4E;
}

/* Shop Actions */
.shop-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-action-btn:hover {
  border-color: #167A4E;
  background: #f0fdf4;
  color: #167A4E;
  transform: translateY(-2px);
}

.shop-action-btn i {
  font-size: 1.1rem;
}

/* Products Section */
.products-section {
  padding: 32px 5%;
  background: #fff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-header h2 i {
  color: #167A4E;
}

.product-count {
  font-size: 0.95rem;
  color: #666;
  background: #f3f4f6;
  padding: 8px 16px;
  border-radius: 20px;
}

/* Products Grid - Featured Product Card Style (matching gigMarketplace) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid .product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.products-grid .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.products-grid .product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.products-grid .product-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  flex-shrink: 0;
  margin: 0 auto;
}

.products-grid .product-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 8px;
}

.products-grid .product-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.products-grid .product-type-badge.online {
  background-color: #2196f3;
}

.products-grid .product-type-badge.physical {
  background-color: #ff9800;
}

.products-grid .product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.products-grid .product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  margin: 0 0 8px;
}

.products-grid .product-description {
  display: none;
}

.products-grid .product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #167A4E;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.products-grid .view-details-btn {
  display: none;
}

/* Loading & Empty States */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
  gap: 16px;
}

.loading-spinner i {
  font-size: 2.5rem;
  color: #167A4E;
}

.no-products {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #666;
}

.no-products i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 16px;
}

.no-products h3 {
  font-size: 1.4rem;
  color: #333;
  margin: 0 0 8px;
}

.no-products p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Error Message */
.error-message {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.error-message i {
  font-size: 2.5rem;
  color: #ef4444;
  margin-bottom: 12px;
}

/* Business Description */
.business-profile .description {
  margin: 0;
  padding: 32px 5%;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.business-profile .description h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.business-profile .description h3 i {
  color: #167A4E;
}

.business-profile .description p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Reviews Section */
.reviews-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 32px 5%;
  background: #fff;
  border-radius: 16px;
}

.reviews-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-section h2 i {
  color: #f4c150;
}

.reviews-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: #666;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
}

/* ================= SHARE MODAL ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #666;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #333;
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-content h3 i {
  color: #167A4E;
}

.modal-content p {
  color: #666;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

/* Share URL Box */
.share-url-box {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.share-url-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #f9fafb;
  color: #333;
}

.share-url-box .copy-btn {
  padding: 12px 20px;
  background: #167A4E;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-url-box .copy-btn:hover {
  background: #135D3D;
}

/* Share Buttons */
.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.whatsapp {
  background: #25D366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #128C7E;
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.facebook:hover {
  background: #0d65d9;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.twitter:hover {
  background: #0c85d0;
}

.share-btn.email {
  background: #666;
  color: white;
}

.share-btn.email:hover {
  background: #555;
}

/* ================= CONTACT MODAL ================= */
.contact-modal {
  max-width: 480px;
}

.contact-modal .contact-subtitle {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-modal .form-group {
  margin-bottom: 20px;
}

.contact-modal .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.contact-modal .form-group label i {
  color: #167A4E;
  font-size: 1rem;
}

.contact-modal .form-group input,
.contact-modal .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f9fafb;
  color: #333;
}

.contact-modal .form-group input:focus,
.contact-modal .form-group textarea:focus {
  outline: none;
  border-color: #167A4E;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 122, 78, 0.15);
}

.contact-modal .form-group input::placeholder,
.contact-modal .form-group textarea::placeholder {
  color: #9ca3af;
}

.contact-modal .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-modal .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-modal .btn-cancel {
  flex: 1;
  padding: 14px 20px;
  background: #f3f4f6;
  color: #333;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-modal .btn-cancel:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.contact-modal .btn-submit {
  flex: 2;
  padding: 14px 20px;
  background: #167A4E;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-modal .btn-submit:hover:not(:disabled) {
  background: #135D3D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.3);
}

.contact-modal .btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Contact Success State */
.contact-modal .contact-success {
  text-align: center;
  padding: 20px 0;
}

.contact-modal .contact-success i {
  font-size: 4rem;
  color: #16a34a;
  margin-bottom: 16px;
}

.contact-modal .contact-success h4 {
  font-size: 1.5rem;
  color: #333;
  margin: 0 0 12px;
}

.contact-modal .contact-success p {
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}

.contact-modal .btn-close-success {
  padding: 14px 32px;
  background: #167A4E;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-modal .btn-close-success:hover {
  background: #135D3D;
  transform: translateY(-2px);
}

/* Contact Error State */
.contact-modal .contact-error {
  text-align: center;
  padding: 20px 0;
}

.contact-modal .contact-error i {
  font-size: 3rem;
  color: #dc2626;
  margin-bottom: 16px;
}

.contact-modal .contact-error p {
  color: #666;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.contact-modal .btn-retry {
  padding: 14px 32px;
  background: #f3f4f6;
  color: #333;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-modal .btn-retry:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

/* ================= BUSINESS OWNER - WELCOME BANNER ================= */
.welcome-banner {
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  color: white;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.welcome-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.welcome-content i {
  margin-bottom: 16px;
}

.welcome-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.welcome-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.welcome-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-btn.primary {
  background: white;
  color: #167A4E;
  border: none;
}

.welcome-btn.primary:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.welcome-btn.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.welcome-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.dismiss-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  z-index: 2;
}

.dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ================= BUSINESS OWNER - SHOP ACTIONS ================= */
.shop-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f3f4f6;
  width: 100%;
}

.shop-actions .shop-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.shop-btn.primary {
  background: #167A4E;
  color: white;
  border: none;
}

.shop-btn.primary:hover {
  background: #135D3D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.3);
}

.shop-btn.secondary {
  background: white;
  color: #333;
  border: 2px solid #e5e7eb;
}

.shop-btn.secondary:hover {
  border-color: #167A4E;
  color: #167A4E;
  background: #f0fdf4;
  transform: translateY(-2px);
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 768px) {
  .shop-header {
    padding: 20px 5%;
  }

  .shop-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .shop-info .logo-container img {
    width: 100px;
    height: 100px;
  }

  .shop-info .info-container h1 {
    font-size: 1.5rem;
  }

  .business-meta {
    justify-content: center;
  }

  .shop-actions {
    justify-content: center;
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-buttons {
    grid-template-columns: 1fr;
  }

  .welcome-banner {
    padding: 24px;
  }

  .welcome-content h2 {
    font-size: 1.3rem;
  }

  .welcome-actions {
    flex-direction: column;
  }

  .welcome-btn {
    width: 100%;
    justify-content: center;
  }
}



/* ===== REVIEW MODAL ===== */
.review-modal-content {
  max-width: 500px;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.review-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-modal-header h3 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
}

.review-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.review-modal-close:hover {
  opacity: 1;
}

.review-modal-body {
  padding: 24px;
}

.review-stars-container {
  margin-bottom: 20px;
}

.review-stars-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.review-star-input {
  display: flex;
  gap: 6px;
  font-size: 32px;
  cursor: pointer;
}

.review-star-input i {
  color: #ddd;
  transition: color 0.15s, transform 0.15s;
}

.review-star-input i:hover,
.review-star-input i.hovered {
  color: #f1c40f;
  transform: scale(1.1);
}

.review-star-input i.selected {
  color: #f1c40f;
}

.review-star-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #888;
}

.review-star-label.active {
  color: #e67e22;
  font-weight: 500;
}

.review-text-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.review-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.review-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.review-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #fafafa;
}

.review-cancel-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.review-cancel-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.review-submit-btn {
  padding: 10px 24px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.review-submit-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.review-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.review-submit-btn.submitting {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 480px) {
  .shop-info .logo-container img {
    width: 80px;
    height: 80px;
  }

  .shop-info .info-container h1 {
    font-size: 1.3rem;
  }

  .shop-action-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .products-grid .product-info {
    padding: 12px;
  }

  .products-grid .product-name {
    font-size: 0.9rem;
  }

  .products-grid .product-price {
    font-size: 1.1rem;
  }

  .products-grid .view-details-btn {
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* ================= ONLINE PRODUCT SECTIONS ================= */

/* --- How It Works --- */
.online-how-it-works {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 28px;
}

.online-how-it-works h3 {
  color: #167A4E;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(22, 122, 78, 0.15);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  color: #167A4E;
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-content p {
  color: #4b5563;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .how-it-works-steps {
    grid-template-columns: 1fr;
  }
}

/* --- What's Included --- */
.online-whats-included {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
}

.online-whats-included h3 {
  color: #167A4E;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #374151;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.included-item:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.included-item i {
  color: #167A4E;
  width: 20px;
  font-size: 1rem;
  flex-shrink: 0;
}

.included-item .included-label {
  color: #6b7280;
  font-weight: 500;
  min-width: 80px;
}

.included-item .included-value {
  color: #1f2937;
  font-weight: 600;
}

@media (max-width: 600px) {
  .included-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Delivery Information --- */
.online-delivery-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 28px;
}

.online-delivery-info h3 {
  color: #1d4ed8;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.delivery-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: white;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.delivery-info-item i {
  color: #1d4ed8;
  width: 20px;
  font-size: 1rem;
  flex-shrink: 0;
}

.delivery-info-item .delivery-label {
  color: #6b7280;
  font-weight: 500;
  min-width: 80px;
}

.delivery-info-item .delivery-value {
  color: #1f2937;
  font-weight: 600;
}

.delivery-info-item .delivery-value.instant {
  color: #16a34a;
  font-weight: 700;
}

@media (max-width: 600px) {
  .delivery-info-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Purchase Protection --- */
.online-purchase-protection {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
}

.online-purchase-protection h3 {
  color: #167A4E;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.protection-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.protection-item:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  transform: translateY(-2px);
}

.protection-item i {
  color: #167A4E;
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .protection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .protection-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ Section --- */
.online-faq {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
}

.online-faq h3 {
  color: #167A4E;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #bbf7d0;
}

.faq-item.active {
  border-color: #167A4E;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: none;
}

.faq-question:hover {
  background: #f0fdf4;
}

.faq-question i {
  color: #167A4E;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px;
}

.faq-answer p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Seller Performance --- */
.online-seller-performance {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 28px;
}

.online-seller-performance h3 {
  color: #a16207;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.performance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  background: white;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #fef08a;
}

.performance-item i {
  color: #a16207;
  font-size: 1.4rem;
}

.performance-item .perf-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
}

.performance-item .perf-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

@media (max-width: 600px) {
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Delivery Status --- */
.online-delivery-status {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
}

.online-delivery-status h3 {
  color: #167A4E;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-status-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #f0fdf4;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
}

.delivery-status-content .status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.delivery-status-content .status-text {
  flex: 1;
}

.delivery-status-content .status-text strong {
  display: block;
  color: #16a34a;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.delivery-status-content .status-text span {
  color: #6b7280;
  font-size: 0.9rem;
}

.status-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
  padding: 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.status-step .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.status-step.completed .step-dot {
  background: #167A4E;
  border-color: #167A4E;
  color: white;
}

.status-step.active .step-dot {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
  box-shadow: 0 0 0 4px rgba(22, 122, 78, 0.2);
}

.status-step .step-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  font-weight: 500;
}

.status-step.completed .step-label {
  color: #16a34a;
}

.status-step.active .step-label {
  color: #167A4E;
  font-weight: 700;
}

.status-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e5e7eb;
  z-index: 0;
}

.status-steps.has-progress::before {
  background: linear-gradient(90deg, #167A4E var(--progress, 0%), #e5e7eb var(--progress, 0%));
}

@media (max-width: 600px) {
  .status-step .step-label {
    font-size: 0.65rem;
  }
  
  .status-step .step-dot {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
}

/* --- Related Services --- */
.online-related-services {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
}

.online-related-services h3 {
  color: #167A4E;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-product-card {
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #bbf7d0;
}

.related-product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: white;
}

.related-product-card .related-product-info {
  padding: 12px;
}

.related-product-card .related-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  margin-bottom: 6px;
}

.related-product-card .related-product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #167A4E;
}

.related-product-card .related-product-business {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Online Buy Section --- */
#online-buy-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.online-buy-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 4px;
}

.buy-delivery-time,
.buy-revisions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #4b5563;
  padding: 14px 18px;
  background: #f9fafb;
  border-radius: 10px;
}

.buy-delivery-time i,
.buy-revisions i {
  color: #167A4E;
  width: 20px;
}

.buy-now-btn {
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(22, 122, 78, 0.3);
}

.buy-now-btn:hover {
  background: linear-gradient(135deg, #135D3D 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 122, 78, 0.4);
}

.buy-now-btn:active {
  transform: translateY(0);
}

.contact-seller-btn-online {
  background: white;
  color: #167A4E;
  border: 2px solid #167A4E;
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: inherit;
}

.contact-seller-btn-online:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.15);
}

/* --- Mobile Sticky Bar --- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 16px;
  z-index: 999;
  display: none;
  animation: slideUpSticky 0.3s ease;
}

@keyframes slideUpSticky {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-sticky-bar.show {
  display: block;
}

.sticky-bar-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-price-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sticky-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #167A4E;
}

.sticky-delivery {
  font-size: 0.8rem;
  color: #6b7280;
}

.sticky-buy-btn {
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.3);
}

.sticky-buy-btn:hover {
  background: linear-gradient(135deg, #135D3D 0%, #15803d 100%);
}

.sticky-buy-btn:active {
  transform: scale(0.97);
}

@media (min-width: 901px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-sticky-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- Review Filters removed - using unified physical product style --- */

/* --- Contact Seller Button (sidebar area) --- */
.order-seller-info .contact-seller-btn {
  margin-top: 12px;
}

/* ================= SERVICE BOOKING FIELDS ================= */

/* Container for the service booking form fields */
#service-booking-fields {
  background: #f8fafb;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#service-booking-fields:hover {
  border-color: #167A4E;
  box-shadow: 0 4px 16px rgba(22, 122, 78, 0.12);
}

/* Labels inside the service booking form */
#service-booking-fields label {
  display: block;
  font-weight: 600;
  color: #167A4E;
  font-size: 0.9rem;
  margin: 14px 0 6px;
}

#service-booking-fields label:first-child {
  margin-top: 0;
}

/* Selects & date/time inputs inside service booking */
#service-booking-fields select,
#service-booking-fields input[type="date"],
#service-booking-fields input[type="time"],
#service-booking-fields input[type="file"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  padding-right: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23167A4E" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* Date/time inputs don't need the dropdown arrow */
#service-booking-fields input[type="date"],
#service-booking-fields input[type="time"],
#service-booking-fields input[type="file"] {
  background-image: none;
  padding-right: 14px;
  cursor: pointer;
}

/* File input specific styling */
#service-booking-fields input[type="file"] {
  padding: 10px 14px;
  background-color: #f9fafb;
  border-style: dashed;
}

/* Hover/focus states */
#service-booking-fields select:hover,
#service-booking-fields input:hover {
  border-color: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 122, 78, 0.08);
}

#service-booking-fields select:focus,
#service-booking-fields input:focus {
  outline: none;
  border-color: #167A4E;
  box-shadow: 0 0 0 3px rgba(22, 122, 78, 0.15);
  background-color: #ffffff;
}

/* Date & time side-by-side grid */
.service-date-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.service-field {
  display: flex;
  flex-direction: column;
}

.service-field label {
  margin: 14px 0 6px;
}

/* Hint text under the attachment input */
.service-file-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .service-date-time-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #service-booking-fields {
    padding: 14px;
  }

  #service-booking-fields select,
  #service-booking-fields input[type="date"],
  #service-booking-fields input[type="time"] {
    padding: 12px 12px;
    font-size: 0.9rem;
    min-height: 48px;
  }
}

/* ============================================================
   PRODUCT OWNER — DYNAMIC LISTING TYPE STYLES
   (Type tabs, listing cards, availability chips, file lists)
   ============================================================ */

/* ---------- Type selector tabs ---------- */
.type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 4px;
}

.type-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  background: #f3f4f6;
  border: 1.8px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: none;
}

.type-tab i {
  font-size: 1rem;
  color: #6b7280;
  transition: color 0.25s ease;
}

.type-tab:hover {
  border-color: #16a34a;
  color: #167A4E;
  background: #f0fdf4;
  transform: translateY(-1px);
}

.type-tab:hover i {
  color: #167A4E;
}

.type-tab.active {
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  border-color: #167A4E;
  box-shadow: 0 4px 12px rgba(22, 122, 78, 0.25);
}

.type-tab.active i {
  color: white;
}

/* Hidden synced select kept for JS compatibility */
.product-type.hidden {
  display: none;
}

/* ---------- Listing cards (sections inside each type) ---------- */
.listing-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.listing-card:hover {
  border-color: #bbf7d0;
  box-shadow: 0 8px 24px rgba(22, 122, 78, 0.08);
}

.listing-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #167A4E;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f0fdf4;
}

.listing-card-header i {
  color: #22c55e;
  font-size: 1.1rem;
}

.listing-card-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin: -6px 0 12px;
  font-style: italic;
  line-height: 1.4;
}

/* ---------- Toggle row (checkbox + label inline) ---------- */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #333;
  margin: 12px 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #167A4E;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Input + unit side-by-side row ---------- */
.input-unit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

/* ---------- Availability day chips ---------- */
.availability-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.day-chip {
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: none;
}

.day-chip:hover {
  border-color: #16a34a;
  color: #167A4E;
  background: #f0fdf4;
}

.day-chip.active {
  background: linear-gradient(135deg, #167A4E 0%, #22c55e 100%);
  color: white;
  border-color: #167A4E;
  box-shadow: 0 3px 8px rgba(22, 122, 78, 0.2);
}

/* ---------- Digital / preview file lists ---------- */
.file-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-list-item:hover {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.file-list-icon {
  color: #167A4E;
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.file-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.file-list-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.file-list-remove {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: none;
}

.file-list-remove:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.08);
}

/* ---------- Drag & drop hover state ---------- */
.upload-box.dragover {
  border-color: #167A4E;
  background: #f0fdf4;
  box-shadow: 0 0 0 4px rgba(22, 122, 78, 0.15);
}

/* ---------- Color variant row inputs (stock & price) ---------- */
.variant-stock,
.variant-price {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  background-color: #fdfdfd;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.variant-stock:focus,
.variant-price:focus {
  outline: none;
  border-color: #167A4E;
  box-shadow: 0 0 0 3px rgba(22, 122, 78, 0.12);
}

.color-variant-row input[type="text"].color-name {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
}

.color-variant-row .color-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Responsive tweaks for tabs & chips */
@media (max-width: 480px) {
  .type-tabs {
    gap: 6px;
  }

  .type-tab {
    padding: 10px 4px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .type-tab i {
    font-size: 0.85rem;
  }

  .input-unit-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .day-chip {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}


