/* ===================================== */
/* HOMEPAGE STYLES - CRUSTHOOD          */
/* ===================================== */

/* Categories Section */
.categories-section {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.5) 0%, rgba(10, 10, 10, 0) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-link:hover .product-card {
    transform: translateY(-4px);
    transition: 0.2s ease;
}


/* ===================================== */
/* LOGIN BUTTON - RESPONSIVE GOLD STYLE  */
/* ===================================== */

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.2rem;
    height: 42px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    border: 1px solid var(--gold-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.login-btn:active {
    transform: scale(0.96);
}

.login-btn .material-symbols-outlined {
    font-size: 22px;
    color: var(--gold-primary);
    transition: color 0.3s ease;
}

.login-btn:hover .material-symbols-outlined {
    color: #fff;
}

.login-text {
    font-family: 'Inter', sans-serif;
}

/* Tablet and smaller screens */
@media (max-width: 768px) {
    .login-btn {
        padding: 0 1rem;
        height: 40px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .login-btn {
        padding: 0 0.8rem;
        height: 38px;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .login-btn .material-symbols-outlined {
        font-size: 20px;
    }

    .login-text {
        font-size: 0.82rem;
        letter-spacing: 0.4px;
    }
}




.categories-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.categories-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) transparent;
}

.categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.category-item:hover .category-circle {
    border-color: var(--gold-primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-circle img {
    transform: scale(1.1);
}

.category-icon {
    font-size: 40px !important;
    color: var(--gold-primary);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.category-item:hover .category-name {
    color: var(--gold-primary);
}

/* Banner Section */
.banner-section {
    margin-bottom: 2rem;
}

.banner-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: scale(1.01);
}

/* Products Section */
.products-section {
    max-width: 1920px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Products Grid */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 130%;
    background: rgba(20, 20, 20, 0.8);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Product Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-primary);
    color: var(--dark-bg);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 8px;
    color: var(--dark-bg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.quick-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

.product-meta {
    margin-bottom: 0.75rem;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.product-mrp {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Product Colors */
.product-colors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: var(--gold-primary);
}

.color-more {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.add-to-cart-btn .material-symbols-outlined {
    font-size: 20px;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-products .material-symbols-outlined {
    font-size: 80px;
    color: var(--gold-primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.no-products p {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ===================================== */
/* RESPONSIVE DESIGN                     */
/* ===================================== */

@media (max-width: 1440px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.75rem;
    }
}

@media (max-width: 1200px) {
    .categories-scroll {
        gap: 1.5rem;
    }

    .category-circle {
        width: 80px;
        height: 80px;
    }

    .category-icon {
        font-size: 36px !important;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .categories-container {
        padding: 0 1.5rem;
    }

    .banner-container {
        padding: 0 1.5rem;
    }

    .products-section {
        padding: 3rem 1.5rem;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .categories-container {
        padding: 0 1.25rem;
    }

    .categories-scroll {
        gap: 1.25rem;
    }

    .category-circle {
        width: 70px;
        height: 70px;
    }

    .category-icon {
        font-size: 32px !important;
    }

    .category-name {
        font-size: 0.8rem;
    }

    .banner-section {
        margin-bottom: 1.5rem;
    }

    .banner-container {
        padding: 0 1.25rem;
    }

    .banner-image {
        border-radius: 8px;
    }

    .products-section {
        padding: 2.5rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 1.25rem 0;
    }

    .categories-container {
        padding: 0 1rem;
    }

    .categories-scroll {
        gap: 1rem;
    }

    .category-circle {
        width: 65px;
        height: 65px;
    }

    .category-icon {
        font-size: 28px !important;
    }

    .category-name {
        font-size: 0.75rem;
    }

    .banner-container {
        padding: 0 1rem;
    }

    .products-section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .product-pricing {
        margin-bottom: 0.75rem;
    }

    .product-price {
        font-size: 1.15rem;
    }

    .product-mrp {
        font-size: 0.9rem;
    }

    .product-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .color-dot {
        width: 20px;
        height: 20px;
    }

    .add-to-cart-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .quick-view-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Smooth Animations */
.product-card,
.category-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Loading State */
.products-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Focus States for Accessibility */
.category-item:focus-visible,
.add-to-cart-btn:focus-visible,
.quick-view-btn:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}








@media (min-width: 1024px) {

  /* Remove all possible spacing around banner */
  body, html {
      margin: 0;
      padding: 0;
  }

  main, section, .banner-section {
      margin: 0;
      padding: 0;
      width: 100%;
  }

  .banner-section {
      display: block;
      position: relative;
      width: 100vw; /* span full viewport width */
      overflow: hidden;
  }

  .banner-container {
      position: relative;
      width: 100vw; /* no max-width limits */
      height: 60vh; /* full visual height */
      overflow: hidden;
      border-radius: 0; /* edge-to-edge look */
      box-shadow: none; /* remove outer shadows */
  }

  .banner-image {
      width: 100%;
      height: 100%;
      object-fit: cover; /* ensures perfect scaling */
      object-position: center;
      display: block;
      border-radius: 0;
      transition: transform 0.6s ease;
  }

  .banner-image:hover {
      transform: scale(1.04);
  }

  /* Optional subtle dark overlay for text contrast */
  .banner-container::after {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.15),
          rgba(0, 0, 0, 0.5)
      );
      pointer-events: none;
  }

  /* Optional caption styling */
  .banner-caption {
      position: absolute;
      bottom: 12%;
      left: 6%;
      color: #fff;
      z-index: 2;
      text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }

  .banner-caption h2 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
  }

  .banner-caption p {
      font-size: 1.1rem;
      opacity: 0.9;
  }
}



/* Stylish Orders Badge */
.product-orders {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    color: var(--gold-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
    margin-left: 10px;
    transition: all 0.3s ease;
}

.product-orders::before {
    content: "🛍️";
    font-size: 0.9rem;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
}

.product-orders:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
    color: #fff;
}
