/* Basic */
body {
  margin: 0;
  background: #0a0f24;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  background: linear-gradient(90deg, #0034a5, #006dff);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 45px;
  border-radius: 50%;
}

.search-box input {
  padding: 10px 15px;
  border-radius: 12px;
  border: none;
  width: 230px;
  background: #ffffff15;
  color: whitesmoke;
  outline: none;
  backdrop-filter: blur(10px);
}

/* Hero */
.hero img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  margin-top: 15px;
}

/* Product Row */
.product-row {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.product-row h2 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 28px;
}

/* Product Grid */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 18px;
}

/* Product Card */
.product-card {
  background: #101833;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #3ea6ff;
  box-shadow: 0 18px 35px rgba(0,0,0,0.5);
}

/* Media */
.product-media {
  height: 170px;
  position: relative;
  overflow: hidden;
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: 0.4s ease;
}

.product-card:hover img { opacity: 0; }
.product-card:hover video {
  opacity: 1;
  transform: scale(1.12);
}

/* Info */
.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.product-info p {
  color: #aee0ff;
  margin-bottom: 12px;
}

.product-info button {
  background: linear-gradient(90deg, #007aff, #00b7ff);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.product-info button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,150,255,0.6);
}

/* QR Container */
.qr-code-container {
  margin-top: 12px;
  display: none;
}

/* Fullscreen Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #050505; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease;
}

/* Center content */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    animation: fadeIn 1.2s ease forwards;
}

/* DigiStore Title with flowing shine */
.loader-content h1 {
    font-size: 46px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.loader-content h1::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shine 2.5s infinite;
}

/* Logo with neon ambient glow */
.loader-content img {
    width: 110px;
    height: 110px;
    border-radius: 40px;
    filter: drop-shadow(0 0 12px #0059ff)
            drop-shadow(0 0 25px #0400ff)
            drop-shadow(0 0 40px #006eff);
    animation: float 2s ease-in-out infinite;
    -webski
}

/* Fullscreen Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a1a33, #000d1a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* Container */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Title from TOP */
.loader-title {
    font-size: 42px;
    font-weight: bold;
    color: #4db8ff;
    opacity: 0;
    transform: translateY(-80px);
    animation: titleDrop 1s ease forwards 0.3s;
}

@keyframes titleDrop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* GOOGLE PLAY STYLE LOADER (Triangle) */
.gp-loader {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    position: relative;
    opacity: 0;
    transform: translateY(90px);
    animation: loaderRise 1.1s ease forwards 0.8s;
}

/* Triangle shape */
.gp-loader::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 35px solid #4db8ff;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    position: absolute;
    left: 17px;
    top: 15px;
    filter: drop-shadow(0 0 10px #4db8ff);
    animation: gpRotate 1.4s linear infinite;
}

/* Triangle Rotation */
@keyframes gpRotate {
    0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 6px #4db8ff); }
    50% { transform: rotate(180deg) scale(1.15); filter: drop-shadow(0 0 14px #66ccff); }
    100% { transform: rotate(360deg) scale(1); filter: drop-shadow(0 0 6px #4db8ff); }
}

/* Loader jumping from BELOW */
@keyframes loaderRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out effect */
#loader.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/* --- GLOBAL RESPONSIVE FIXES --- */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make images & videos scale properly */
img, video {
  max-width: 100%;
  height: auto;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 45px;
}

.search-box input {
  padding: 8px 12px;
  border-radius: 5px;
  width: 250px;
  max-width: 100%;
}

/* --- HERO --- */
.hero img {
  width: 100%;
  border-radius: 8px;
}

/* --- PRODUCT GRID --- */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: #101833;
  border-radius: 10px;
  padding: 15px;
}

.product-media {
  position: relative;
  width: 100%;
}

.product-media img,
.product-media video {
  width: 100%;
  border-radius: 8px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {

  .navbar {
    padding: 10px 15px;
  }

  .search-box input {
    width: 100%;
    margin-top: 10px;
  }

  .nav-left h1 {
    font-size: 20px;
  }

  .product-card {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 18px;
  }

  .product-info p {
    font-size: 15px;
  }

  button {
    width: 100%;
    padding: 10px;
    font-size: 15px;
  }
}

/* SMALL PHONES */
@media (max-width: 480px) {
  .nav-left h1 {
    font-size: 18px;
  }

  .logo {
    height: 35px;
  }
}

