/* Aura Space Enhanced Styles */

/* ===== ANIMATIONS ===== */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(114, 161, 222, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(114, 161, 222, 0.6);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(114, 161, 222, 0.5);
    }
    50% {
        border-color: rgba(138, 132, 255, 0.8);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===== STORE HERO SECTION ===== */
.store-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.7), rgba(5, 10, 25, 0.9));
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/grid2.png') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: floatUp 1.5s ease-out;
}

.store-hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #64ffda, #8a84ff, #72a1de);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    animation: gradientFlow 8s linear infinite;
}

.store-hero p {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #64ffda, #8a84ff);
    background-size: 200% 200%;
    color: #061121;
    border: none;
    animation: gradientFlow 8s linear infinite;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(100, 255, 218, 0.5);
    animation: borderGlow 3s infinite;
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

.hero-vid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    width: 90%;
    max-width: 1400px;
    margin: 100px auto;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    background: linear-gradient(90deg, #64ffda, #8a84ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #64ffda, #8a84ff);
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 20px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(138, 132, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 255, 218, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #64ffda, #8a84ff);
    animation: pulseGlow 2s infinite;
}

.category-icon i {
    font-size: 35px;
    color: #64ffda;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon i {
    color: #061121;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover h3 {
    background: linear-gradient(90deg, #64ffda, #8a84ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    width: 90%;
    max-width: 1400px;
    margin: 100px auto;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    color: #f5f5f7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(138, 132, 255, 0.2));
    border-color: rgba(100, 255, 218, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(20, 30, 50, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 440px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(36, 22, 80, 0.5);
    border-color: rgba(100, 255, 218, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: rgba(15, 20, 30, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(100, 255, 218, 0.3));
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(100, 255, 218, 0.4));
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(90deg, #64ffda, #8a84ff);
    color: #061121;
    padding: 8px 16px;
    border-top-right-radius: 16px;
    border-bottom-left-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.product-category {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #64ffda;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.product-card:hover .product-title {
    background: linear-gradient(90deg, #64ffda, #8a84ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
    transform: translateY(-1px);
}

.product-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 67px; /* 3 lines of text with line-height 1.6 */
    position: relative;
}

.product-card:hover .product-description {
    color: rgba(255, 255, 255, 0.85);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    color: #64ffda;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
    letter-spacing: 0.5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.product-rating i {
    color: #ffca28;
    font-size: 15px;
    text-shadow: 0 0 5px rgba(255, 202, 40, 0.5);
}

.product-rating span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cart,
.btn-view,
.btn-buy-now {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    height: 38px;
}

.btn-cart {
    background: linear-gradient(90deg, #64ffda, #8a84ff);
    color: #061121;
    flex: 1;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-view {
    background: rgba(20, 20, 30, 0.6);
    color: white;
    border: 1px solid rgba(138, 132, 255, 0.3);
    min-width: 80px;
    border-radius: 4px;
}

.btn-cart:hover,
.btn-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Removed duplicate product-actions class */

.btn-cart, .btn-view {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-cart {
    background: linear-gradient(135deg, #64ffda, #8a84ff);
    color: #061121;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.btn-cart:hover {
    opacity: 0.95;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(100, 255, 218, 0.4);
}

.btn-view {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-buy-now {
    background: linear-gradient(135deg, #0070ba, #003087);
    color: #ffffff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #005ea6, #002d78);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 112, 186, 0.4);
}

.btn-buy-now:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 112, 186, 0.3);
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* ===== FEATURED PRODUCT SECTION ===== */
.featured-product {
    width: 90%;
    max-width: 1400px;
    margin: 150px auto;
    position: relative;
    background: linear-gradient(135deg, rgba(6, 17, 33, 0.8), rgba(10, 25, 50, 0.8));
    border-radius: 20px;
    overflow: hidden;
    padding: 60px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/grid1.png') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.featured-badge {
    background: linear-gradient(135deg, #64ffda, #8a84ff);
    color: #061121;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

.featured-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, #fff, #64ffda);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.featured-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
}

.featured-price-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.featured-price {
    font-size: 36px;
    font-weight: 700;
    color: #64ffda;
}

.featured-old-price {
    font-size: 20px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
}

.featured-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.featured-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-btn.primary {
    background: linear-gradient(135deg, #64ffda, #8a84ff);
    color: #061121;
    border: none;
}

.featured-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.featured-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(100, 255, 218, 0.5);
}

.featured-btn.secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .store-hero h1 {
        font-size: 4rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-image {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .store-hero h1 {
        font-size: 3.5rem;
    }
    
    .store-hero p {
        font-size: 1.4rem;
    }
    
    .featured-product {
        padding: 40px;
    }
    
    .featured-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .store-hero {
        padding: 80px 20px 40px;
    }
    
    .store-hero h1 {
        font-size: 3rem;
    }
    
    .store-hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .featured-title {
        font-size: 28px;
    }
    
    .featured-price {
        font-size: 28px;
    }
    
    .featured-old-price {
        font-size: 16px;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .featured-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .store-hero h1 {
        font-size: 2.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 25px;
    }
    
    .featured-product {
        padding: 30px 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Authentication-related styles */
.account-link a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.account-link a:hover {
    color: #64ffda;
}

.account-link a.logged-in {
    color: #64ffda;
    font-weight: 600;
}

.account-link a.logged-in:hover {
    opacity: 0.9;
}

/* Disable add to cart for non-logged in users */
.btn-cart[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.btn-cart[disabled]:hover {
    transform: none;
    box-shadow: none;
}
