/* Shop Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(30, 30, 40, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f15;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.shop-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.currency-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border: var(--glass-border);
}

.currency-icon {
    color: #ffd700;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    backdrop-filter: blur(5px);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(118, 75, 162, 0.5);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #1a1a2e;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.1rem;
    color: #a8adf0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    transition: 0s;
}

.btn-primary {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Upload Form */
.upload-zone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.05);
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #764ba2;
    background: rgba(0,0,0,0.3);
}

/* Item Detail */
.item-detail-container {
    display: flex;
    gap: 3rem;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 30px;
    border: var(--glass-border);
}

.item-image-large {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.item-meta {
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff9999;
}
.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #99ff99;
}

/* Navigation Tabs for Index */
.tab-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem;
    border-radius: 12px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-tab:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Search Box Container */
.search-box {
    display: flex;
    gap: 0;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    width: 250px;
}

.search-box button {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: color 0.3s;
    border-radius: 8px;
}

.search-box button:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
