/* NAKALOWOSHA - Premium African Digital Commerce Style */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

.section {
    display: none;
    min-height: 100vh;
    padding: 20px;
}

.section.active {
    display: block;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 2s ease-in-out 3s forwards;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 1s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.nav-logo span {
    font-weight: bold;
    font-size: 1.2rem;
    color: #ff6b35;
}

.nav-search {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 420px;
    margin: 0 20px;
}

.nav-search input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 35px 0 0 35px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(18px);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
}

.nav-search button {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    border: none;
    border-radius: 0 35px 35px 0;
    color: #111;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.25);
}

.nav-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 35px rgba(255, 107, 53, 0.35);
}

.nav-cart {
    margin-right: 20px;
}

.cart-btn {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid #ff6b35;
    padding: 10px 15px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: rgba(255, 107, 53, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #ff6b35 100%);
    padding: 100px 20px 80px;
    text-align: center;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    letter-spacing: 3px;
    animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow: 0 0 60px rgba(255, 107, 53, 0.8), 0 0 80px rgba(255, 215, 0, 0.6);
    }
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.1rem;
    color: #ff6b35;
    font-weight: bold;
}

.product-promotion {
    background: #ff6b35;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ff7f2a 55%, #ff6b35 100%);
    color: #111;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.5);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}


/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 100px auto 0;
    padding: 20px;
}

.product-details .product-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.product-info h2 {
    margin-bottom: 20px;
    color: #ff6b35;
}

.price-section {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.sizes,
.quantity {
    margin: 20px 0;
}

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

.quantity button {
    background: #ff6b35;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

.actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Cart */
#cart-items {
    max-width: 800px;
    margin: 100px auto 0;
}

.cart-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.cart-item-details {
    flex: 1;
}

.cart-item h3 {
    margin-bottom: 10px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.cart-total {
    text-align: center;
    margin: 40px 0;
}

/* Checkout */
.checkout-form {
    max-width: 900px;
    margin: 100px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.payment-details.hidden {
    display: none;
}

.payment-summary {
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #fff;
}

.payment-summary h3 {
    margin-bottom: 15px;
}

#continue-to-details {
    margin-top: 25px;
    width: 100%;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.payment-option:hover,
.payment-option.selected {
    border: 2px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.payment-option img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-fields input,
.form-fields select {
    padding: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.form-fields input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* About, Contact, Feedback */
.about-content,
.contact-content,
.feedback-content {
    max-width: 800px;
    margin: 100px auto 0;
    text-align: center;
}

.feedback-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 30px 0 20px;
}

.feedback-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 22px;
    padding: 22px;
    text-align: left;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.feedback-card p {
    color: #f6f0e1;
    margin-bottom: 14px;
    font-style: italic;
    line-height: 1.6;
}

.feedback-card span {
    display: block;
    color: #ffd700;
    font-weight: 700;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-item a {
    color: #ff6b35;
    text-decoration: none;
}

/* Admin */
.admin-login,
.admin-panel {
    max-width: 500px;
    margin: 100px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

#product-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#product-form input,
#product-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

#product-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366 0%, #00c851 100%);
    padding: 14px 20px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn span {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-whatsapp-group {
    display: inline-block;
    padding: 14px 26px;
    margin-top: 10px;
    border-radius: 35px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 35px rgba(18, 140, 126, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 45px rgba(18, 140, 126, 0.45);
}


/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.footer-logo img {
    width: 50px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.18);
}

.footer-links a:hover {
    background: rgba(255, 215, 0, 0.18);
    color: #111;
    transform: translateY(-1px);
}

/* Back Buttons */
.back-btn {
    position: fixed;
    top: 100px;
    left: 20px;
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e55a2b;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-search {
        max-width: none;
        margin: 0;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .categories {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-details {
        grid-template-columns: 1fr;
        margin-top: 120px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .actions {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .product-card {
        margin: 0 10px;
    }

    .back-btn {
        top: 80px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s;
}