/* ============================================
   Naruto Premium Store - Advanced Stylesheet
   ============================================ */

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary: #00d4ff;
    --secondary-dark: #00b8e6;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --gray: #2d2d44;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: var(--dark);
}

.logo i {
    color: var(--primary);
    margin-right: 8px;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    width: 300px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    color: var(--dark);
    font-size: 24px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="%23ff6b35" d="M50,0 L61.8,38.2 L100,50 L61.8,61.8 L50,100 L38.2,61.8 L0,50 L38.2,38.2 Z"/></svg>');
    background-repeat: repeat;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========== STATS SECTION ========== */
.stats {
    padding: 60px 0;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 36px;
    margin-bottom: 5px;
}

/* ========== PRODUCTS SECTION ========== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: #666;
}

.featured-products,
.new-arrivals,
.all-products {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-badge.new {
    background: var(--success);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-category {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-details {
    background: var(--gray);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--dark);
}

/* ========== CATEGORY FILTER ========== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-filter a {
    padding: 8px 20px;
    background: var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--primary);
    color: white;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 15px;
    background: var(--light-gray);
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.current-page {
    padding: 10px 15px;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
    padding: 60px 0;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    height: auto;
}

.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-rating {
    color: var(--warning);
    margin-bottom: 15px;
}

.product-price-large {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-stock {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.product-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.product-stock.out-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-description {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

#quantity {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-add-cart-large {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-buy-now {
    flex: 1;
    background: var(--success);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
}

.btn-buy-now:hover {
    background: #218838;
    transform: translateY(-2px);
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.product-share a {
    color: #666;
    font-size: 20px;
    transition: var(--transition);
}

.product-share a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter i {
    font-size: 48px;
    margin-bottom: 20px;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--darker);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: #999;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* ========== TOAST NOTIFICATION ========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    background: var(--success);
}

.toast-notification.error {
    background: var(--danger);
}

.toast-notification.info {
    background: var(--info);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px;
}

.empty-state i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .search-bar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        gap: 5px;
    }
    
    .category-filter a {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(100px);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-add-cart:active {
    animation: pulse 0.3s ease;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}