/* Koola's Phones - Modern E-commerce Stylesheet */
/* Red, Black, and White Theme */

:root {
    --primary-red: #E31837;
    --dark-red: #B71C1C;
    --light-red: #FF5252;
    --black: #000000;
    --dark-gray: #212121;
    --medium-gray: #424242;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --success: #4CAF50;
    --warning: #FFC107;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font & Typography Setup */
body {
    font-family: 'Inter', 'Roboto', 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #111;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 36px;
    font-weight: 700;
}

h2 {
    font-size: 26px;
    font-weight: 600;
}

h3 {
    font-size: 22px;
    font-weight: 600;
}

h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 18px; font-weight: 600; }
h6 { font-size: 16px; font-weight: 600; }

p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header & Navigation */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.95rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-left span:first-child {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-red);
}

.top-bar-left span:first-child i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header {
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin: 0;
}

.logo span {
    color: var(--black);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    border: 2px solid var(--primary-red);
    border-radius: 25px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 1.15rem;
}

.search-form button {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: var(--dark-red);
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.header-action i {
    font-size: 2rem;
    color: var(--black);
}

.header-action span {
    font-size: 1rem;
    color: var(--medium-gray);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

/* Navigation Menu */
.nav-menu {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 22px;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
}

.nav-menu a i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Dropdown Menu */
.nav-menu .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    padding: 0;
}

.nav-menu .has-dropdown:hover .dropdown {
    display: block;
}

.nav-menu .dropdown li {
    width: 100%;
}

.nav-menu .dropdown a {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu .dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    padding: 20px 0 25px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}

.hero-text {
    max-width: 450px;
}

.hero-text h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary-red);
}

.hero-text p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 380px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 9px 20px;
    font-size: 0.85rem;
}

button, .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Featured Categories */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 24, 55, 0.15);
    background-color: #fff8f9;
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 12px;
}

.category-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.category-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: var(--primary-red);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 22px;
}

.product-brand {
    color: var(--medium-gray);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.old-price {
    font-size: 1.2rem;
    color: var(--medium-gray);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stars {
    color: var(--warning);
    font-size: 1.1rem;
}

.rating-count {
    color: var(--medium-gray);
    font-size: 1.05rem;
}

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

.btn-add-cart {
    flex: 1;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background-color: var(--dark-red);
}

.btn-icon {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Reviews Section */
.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.review-info h5 {
    margin-bottom: 5px;
}

.review-rating {
    color: var(--warning);
}

.review-text {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.newsletter-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-section p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.15rem;
    outline: none;
}

.newsletter-form button {
    padding: 18px 35px;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background-color: var(--dark-gray);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-red);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.8);
    animation: none;
}

.whatsapp-float i {
    color: var(--white);
    font-size: 2.2rem;
}

.whatsapp-float::after {
    content: "Chat with us!";
    position: absolute;
    right: 75px;
    background-color: var(--white);
    color: #128C7E;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px var(--shadow);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.modal-overlay.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .search-bar {
        margin: 20px 0;
        max-width: 100%;
    }

    .header .container {
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu li {
        width: 100%;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

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

    .hero-text p {
        font-size: 1rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
