/* Store Homepage Enhanced Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.store-homepage {
  background: radial-gradient(
    circle at top left,
    #d7ffe5 0,
    #fdf2f8 35%,
    #eff6ff 75%
  );
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.store-hero {
  text-align: center;
  padding: 8rem 0 6rem;
  color: white;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.store-hero.has-banner {
  padding: 8rem 0 8rem;
}

.store-hero.has-banner::before {
  display: none;
}

.hero-banner-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 83vw;
}

.hero-content.with-banner {
  background: rgba(18, 18, 18, 0.315);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.store-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #fff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.store-hero p {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.store-home-features-container {
  max-width: 1200px;
  padding: 0 1.25rem;
  margin: auto;
}

.store-features {
  padding: 0rem 0 6rem;
  position: relative;
}

.store-features .section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  gap: 1rem;
}

.store-features .section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #9fb158, #357cb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.store-features .section-header p {
  color: black;
  max-width: 600px;
  line-height: 1.6;
  text-align: center;
}

.features-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  text-align: center;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
  font-size: 30px;
}

.feature-card h3 {
  font-size: 25px;
  color: #2c3e50;
  font-weight: 700;
  display: inline;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.8;
  font-size: 1.1rem;
}

.store-cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.store-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: white;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 3rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.btn {
  padding: 8px 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 3px solid #667eea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

/* Categories Section */
.home-categories {
  padding-top: 50px;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-weight: 600;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-size: 30px;
  text-align: left;
}

.store-categgory-all {
  background: #834f4f1f;
  border: 1px solid rgb(82 77 77 / 25%);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  color: #6b7280;
}

.store-categgory-all:hover {
  background: #ffffff1f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: #5a67d8;
}

.section-header p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: right;
}

.section-header .btn {
  flex-shrink: 0;
  margin-left: auto;
}

.cat-info-modal-store {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
}

.cat-info-modal-store.show {
  opacity: 1;
  pointer-events: auto;
}

body.cat-modal-active {
  overflow: hidden;
  touch-action: none;
}

.ci-content-store {
  width: 100%;
  padding: 18px;
  text-align: center;
  border-top: 4px solid #000;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 25px rgba(15, 23, 42, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cat-info-modal-store.show .ci-content-store {
  transform: translateY(0);
}

.ci-banner-store {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  max-height: 200px;
  object-fit: cover;
}

.ci-fullname-store {
  font-size: 1.3rem;
  font-weight: 700;
}

.ci-tagline-store {
  color: #555;
  font-weight: 500;
  margin: 8px 0;
}

.ci-desc-store {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.45;
}

.ci-close-btn-store {
  margin-top: 16px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: #111827;
  color: #fff;
  font-weight: 600;
}

/* Reuse platform category grid styles for exact match */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0.5rem;
  border-radius: 18px;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-initial {
  font-size: 1.4rem;
  font-weight: 600;
  color: #4f46e5;
}

.cat-short {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  min-height: 2.2em;
  white-space: normal;
  word-break: break-word;
}

.cat-item.pc-gradient-1 {
  background: radial-gradient(circle at 0 0, #e0f2fe, #e5e7eb);
}
.cat-item.pc-gradient-2 {
  background: radial-gradient(circle at 0 0, #fee2e2, #fef3c7);
}
.cat-item.pc-gradient-3 {
  background: radial-gradient(circle at 0 0, #ede9fe, #e0f2fe);
}
.cat-item.pc-gradient-4 {
  background: radial-gradient(circle at 0 0, #dcfce7, #fef9c3);
}
.cat-item.pc-gradient-5 {
  background: radial-gradient(circle at 0 0, #fce7f3, #e5e7eb);
}
.cat-item.pc-gradient-6 {
  background: radial-gradient(circle at 0 0, #fef3c7, #e0f2fe);
}

/* Featured Products Section */
.home-featured {
  padding: 50px 0;
  position: relative;
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.product-card-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

/* Ensure no text inside the product card gets underlined */
.product-card * {
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.12);
}

.product-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.no-image {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.1rem;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  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 styles removed */

.product-info {
  padding: 1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  width: 100%;
}

.product-name {
  font-size: 1.05rem;
  color: #333;
  font-weight: 600;
}

.product-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  margin-top: auto;
}

.add-to-cart-btn {
  flex: 1 1 auto;
  padding: 0.65rem 0.9rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.add-to-cart-btn:hover {
  background: #5a6fd8;
}

.add-to-cart-btn .cart-icon {
  stroke: currentColor;
}

.wishlist-btn {
  width: 44px;
  border: none;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111827;
}

.wishlist-icon {
  stroke: currentColor;
  fill: none;
}

.wishlist-btn.is-active .wishlist-icon,
.wishlist-btn.active .wishlist-icon {
  fill: #ef4444;
  stroke: #ef4444;
}

/* Recent Products Section */
.home-recent {
  padding: 0 0 50px;
  position: relative;
}

.home-recent .section-header {
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 1;
}

.home-recent .section-header p {
  color: #6c757d;
  max-width: 600px;
}

.recent-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Disable hover effects on touch/mobile */
@media (hover: none), (pointer: coarse) {
  .store-homepage .hero-actions .btn:hover {
    color: inherit;
  }

  .store-homepage .hero-actions .btn,
  .store-homepage .feature-card,
  .store-homepage .cat-item,
  .store-homepage .product-card,
  .store-homepage .product-card::before,
  .store-homepage .product-thumb img,
  .store-homepage .product-overlay,
  .store-homepage .add-to-cart-btn {
    transition: none !important;
  }

  .store-homepage .feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .store-homepage .cat-item:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  }

  .store-homepage .product-card:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.06);
  }

  .store-homepage .product-card:hover::before {
    opacity: 0;
  }

  .store-homepage .product-card:hover .product-overlay {
    opacity: 0;
  }

  .store-homepage .add-to-cart-btn:hover {
    background: #667eea;
    transform: none;
    box-shadow: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .store-hero h1 {
    font-size: 2.5rem;
  }

  .store-hero p {
    font-size: 1.1rem;
  }

  .store-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 75%;
    max-width: 300px;
    padding: 10px;
    font-size: 13px;
  }

  .home-recent {
    padding: 0rem 0 2rem;
  }

  .recent-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .featured-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0 0.9rem;
  }

  .recent-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-thumb {
    height: 150px;
  }

  .product-info {
    padding: 0.75rem 0.85rem 1rem;
    gap: 0px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-description {
    line-clamp: 2;
    font-size: 0.78rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-actions {
    gap: 0.45rem;
  }

  .add-to-cart-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 10px;
  }

  .btn-secondary {
    border: 1px solid #667eea;
  }

  .section-header .store-categgory-all {
    padding: 0rem 0.5rem;
    min-height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .featured-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0;
  }

  .product-thumb {
    height: 125px;
  }

  .product-info {
    padding: 5px;
  }

  .product-name {
    font-size: 10px;
    line-height: 1.2;
  }

  .product-description {
    display: none;
  }

  .product-price {
    font-size: 10px;
  }

  .add-to-cart-btn {
    padding: 0.35rem 0.45rem;
    font-size: 10px;
  }

  .store-hero.has-banner {
    padding: 3rem 0 3rem;
  }

  .store-hero h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .store-hero p {
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 10px;
  }

  .hero-actions {
    margin-top: 20px;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .home-categories {
    padding-top: 30px;
  }

  .home-featured {
    padding: 2rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .section-header p {
    font-size: 12px;
  }

  .home-recent .section-header {
    margin-bottom: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px;
  }

  .feature-card {
    padding: 10px;
    width: fit-content;
    height: -webkit-fill-available;
  }

  .feature-icon {
    font-size: 16px;
  }

  .feature-card h3 {
    font-size: 12px;
    font-weight: 500;
    display: block;
  }

  .feature-card p {
    font-size: 9px;
    font-weight: 400;
  }

  .store-features {
    padding: 0rem 0 2rem;
  }

  .store-features .section-header {
    margin-bottom: 20px;
    padding: 0;
  }

  .store-features .section-header h2 {
    font-size: 20px;
  }

  .store-features .section-header p {
    font-size: 12px;
  }
}