/* 
 * Shop Modern - Premium Store UI Styling
 * Design: High-end commerce experience with glassmorphism and dark mode
 */

:root {
    --shop-bg: #0b0e14;
    --shop-card-bg: rgba(25, 30, 40, 0.6);
    --shop-accent: #00a8ff;
    --shop-accent-glow: rgba(0, 168, 255, 0.3);
    --shop-border: rgba(255, 255, 255, 0.08);
}

/* Shop Toolbar Section */
.shop-toolbar {
    background: rgba(20, 25, 35, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--shop-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 50; /* Dropdown menülerin diğer elemanların üstünde kalması için */
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-accent);
}

.shop-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    padding: 12px 15px 12px 45px;
    color: #fff;
    transition: all 0.3s ease;
}

.shop-search:focus {
    outline: none;
    border-color: var(--shop-accent);
    box-shadow: 0 0 15px var(--shop-accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.shop-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Custom Premium Dropdown */
.custom-dropdown {
    position: relative;
    user-select: none;
    min-width: 200px;
    z-index: 100;
}

.dropdown-selected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--shop-border);
    color: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--shop-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--shop-accent-glow);
}

.dropdown-selected i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--shop-accent);
}

.custom-dropdown.open .dropdown-selected i {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(20, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--shop-accent);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: rgba(0, 168, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

.dropdown-option.active {
    background: linear-gradient(90deg, rgba(0, 168, 255, 0.2), transparent);
    color: var(--shop-accent);
    font-weight: 600;
    border-left: 3px solid var(--shop-accent);
}

/* Products Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.shop-grid.show {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Product Card Redesign */
.shop-card {
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-10px);
    border-color: var(--shop-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--shop-accent-glow);
}

.card-image-wrapper {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.shop-card:hover .card-image {
    transform: scale(1.1);
}

.card-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.shop-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.badge-new { background: rgba(0, 200, 83, 0.8); color: #fff; }
.badge-hot { background: rgba(255, 61, 0, 0.8); color: #fff; }
.badge-discount { background: #fbbf24; color: #000; }

.live-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge i {
    font-size: 0.5rem;
    color: #10b981;
    text-shadow: 0 0 5px #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 0.8rem;
    color: var(--shop-accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-price-row {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.meta-item {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px;
    border-radius: 4px;
}

.meta-item i {
    color: var(--shop-accent);
}

.card-footer-action {
    width: 100%;
}

.card-footer-action .btn-shop-view {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-footer-action .btn-shop-view:hover {
    background: linear-gradient(135deg, var(--shop-accent), #0072ff);
    border-color: transparent;
}

.card-price {
    display: flex;
    flex-direction: column;
}

.original-price {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: -2px;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.current-price small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
}

.btn-shop-view {
    background: linear-gradient(135deg, var(--shop-accent), #0072ff);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-shop-view:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shop-accent-glow);
}

/* Empty State Styling */
.shop-empty-state {
    text-align: center;
    padding: 80px 20px;
    border: 2px dashed var(--shop-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
}

.shop-empty-state i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.shop-empty-state h3 { color: #fff; font-weight: 700; }
.shop-empty-state p { color: rgba(255, 255, 255, 0.4); }

/* Animation Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .shop-filters {
        flex-direction: column;
    }
}
.modal-image-badges {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 5;
}

.premium-badge-id, .premium-badge-duration {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.premium-badge-duration {
    border-color: var(--shop-accent);
    color: var(--shop-accent);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

/* Premium Buy Button */
.btn-add-to-cart-premium {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0088ff, #0066cc);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
}

.btn-add-to-cart-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.6);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.payment-trust-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.trust-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-pill i {
    color: #00c853;
}

/* Modal Enhancements */
.modal-price-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.modal-original-price {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: -5px;
}

.modal-discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff4655;
    color: #fff;
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.4);
    z-index: 10;
    transform: rotate(-5deg);
}

.description-compact {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.description-compact p {
    margin-bottom: 15px;
}

.description-compact br {
    display: block;
    margin-bottom: 10px;
    content: "";
}
