.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    position: relative;
}

.product-card {
    border-radius: 12px;
    background: var(--bg-gradient);
    backdrop-filter: var(--bg-blur);
    box-shadow: var(--glow-primary);
    border: 1px solid var(--border-medium);
    color: var(--color-text);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, 
        rgba(255, 215, 0, 0.03) 0%,
        rgba(255, 215, 0, 0.06) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.15);
}

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

.product-image-quick {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 320px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.product-image-quick video,
.product-image-quick img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-info h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}





/* Base Variables */
:root {
  --gold-primary: #FFD700;
  --gold-secondary: #D4AF37;
  --gold-light: #FFF9C4;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --bg-dark: rgba(0, 0, 0, 0.3);
  --bg-light: rgba(255, 255, 255, 0.1);
}

/* Stock Row */
.stock-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bg-dark), rgba(0, 0, 0, 0.2));
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stock-label {
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

.stock-value {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.85rem;
}


.stars {
  display: flex;
  gap: 3px;
}

.stars i {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.stars i.filled {
  color: var(--gold-primary);
}

.rating-value {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 2px;
}
.product-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.from-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 215, 0, 0.7);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.current-price {
    font-size: 1.4rem;
    color: #FFD700;
    font-weight: 600;
}

.old-price {
    font-size: 0.9rem;
    color: rgba(255, 215, 0, 0.4);
    text-decoration: line-through;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 8px;
    right: 0;
    background: rgba(210, 47, 47, 0.2);
    color: #d32f2f;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}
.price-old {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  text-decoration: line-through;
  margin-right: 8px;
}

.discount-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: rotate(15deg);
}

.from-text {
    color: var(--color-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

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



.current-price {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.quick-buy-container {
    margin-top: auto;
    position: relative;
    height: 45px;
}

.quick-buy-default {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.quick-buy-quantity {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* When active, show/hide panels */
.quick-buy-default.hidden {
    opacity: 0;
    visibility: hidden;
}

.quick-buy-quantity.visible {
    opacity: 1;
    visibility: visible;
}

.quick-buy-btn {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 215, 0, 0.2) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    color: var(--color-primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.quick-buy-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.2) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-buy-btn:hover {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 215, 0, 0.25) 100%
    );
    border-color: rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

.quick-buy-btn:hover::before {
    opacity: 1;
    animation: buttonGlow 2s linear infinite;
}

@keyframes buttonGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.quick-buy-btn:disabled {
    background: rgba(40, 40, 40, 0.3);
    border-color: rgba(80, 80, 80, 0.2);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.quick-buy-btn:disabled::before {
    display: none;
}

.quantity-selector {
    height: 40px;
    min-width: 120px;
    display: flex;
    background: rgba(255,255,255,0.1);
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 0 16px;
    position: relative;
    transition: all 0.2s ease;
}

.quantity-selector:hover::after {
    opacity: 1;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    color: #ffd700;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quantity-btn:hover {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.quantity-btn:hover::before {
    transform: translateX(100%);
}

.quantity-btn:active {
    transform: translateY(0);
}

.quantity-input {
    width: 45px;
    height: 32px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    color: #ffd700;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 0;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.3);
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.proceed-btn {
    min-width: 80px;
    height: 40px;
    padding: 0 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 2px solid #ffd700;
    border-radius: 25px;
    color: #ffd700;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    opacity: 0.85;
    display: block;
    margin-left: auto;
}

.proceed-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    opacity: 1;
    transform: scale(1.02);
}

.proceed-btn:active {
    transform: scale(0.98);
    background: rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .current-price {
        font-size: 1.2rem;
    }

    .quick-buy-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
@keyframes starGlow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
    color: rgba(255, 215, 0, 0.3);
  }
  50% {
    opacity: 1;
    color: #fff6a9;
    text-shadow: 0 0 16px #fff6a9, 0 0 4px #FFD700;
    transform: scale(1.1);
  }
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.stock-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars i {
  font-size: 0.9rem;
  animation: starGlow 3s ease-in-out infinite;
  will-change: opacity, transform; /* Performans için önemli */
  backface-visibility: hidden;
  transform: translateZ(0); /* GPU optimizasyonu */
}

/* Delay: sırayla yansınlar */
.stars i:nth-child(1) { animation-delay: 0s; }
.stars i:nth-child(2) { animation-delay: 0.3s; }
.stars i:nth-child(3) { animation-delay: 0.6s; }
.stars i:nth-child(4) { animation-delay: 0.9s; }
.stars i:nth-child(5) { animation-delay: 1.2s; }

