:root {
    --flipkart-blue: #2874f0;
    --flipkart-yellow: #FFE11B;
    --bg-gray: #f1f3f6;
    --white: #ffffff;
    --text-primary: #212121;
    --text-secondary: #878787;
    --border-color: #e0e0e0;
    --success-green: #388e3c;
    --error-red: #ff6161;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gray);
    color: var(--text-primary);
}

/* Header Styles */
.header {
    background: var(--flipkart-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 11px;
    font-style: italic;
    font-weight: 400;
    margin-top: 2px;
}

.search-container {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--flipkart-blue);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-gray);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--flipkart-blue);
}

.header-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 2px;
    transition: background 0.2s;
    text-decoration: none;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-btn {
    background: var(--flipkart-yellow);
    color: var(--text-primary);
    font-weight: 600;
}

.admin-btn:hover {
    background: #f5d500;
}

/* Category Navigation */
.category-nav {
    background: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav::-webkit-scrollbar {
    height: 0;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.category-item {
    padding: 15px 0;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-item:hover,
.category-item.active {
    color: var(--flipkart-blue);
    border-bottom-color: var(--flipkart-blue);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Product Section */
.product-section {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.section-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.view-all {
    color: var(--flipkart-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.view-all:hover {
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* Product Card */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--white);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 40px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.original-price {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount {
    font-size: 13px;
    color: var(--success-green);
    font-weight: 600;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--success-green);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.buy-button {
    width: 100%;
    padding: 10px;
    background: var(--flipkart-yellow);
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
    text-transform: uppercase;
}

.buy-button:hover {
    background: #f5d500;
}

/* Footer */
.footer {
    background: #172337;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 12px;
}

/* Admin Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #334155;
}

.sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.25rem;
}

.sidebar-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #334155;
    color: #fff;
    border-left: 3px solid var(--flipkart-blue);
}

.logout-link {
    margin-top: auto;
    border-top: 1px solid #334155;
}

.admin-main {
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.admin-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.admin-user {
    font-weight: 600;
    color: #334155;
}

.admin-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Admin Components */
.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--flipkart-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1a5ac6;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

.product-table th,
.product-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.product-table th {
    background: var(--bg-gray);
    font-weight: 600;
    font-size: 14px;
}

.product-table img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin-right: 5px;
    transition: opacity 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    opacity: 0.8;
}

.btn-edit {
    background: var(--flipkart-blue);
    color: var(--white);
}

.btn-delete {
    background: var(--error-red);
    color: var(--white);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.auth-page {
    max-width: 400px;
    margin: 60px auto;
}

.auth-card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-card h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.form-input:focus {
    border-color: var(--flipkart-blue);
}

.error {
    color: var(--error-red);
    font-size: 13px;
    margin-bottom: 10px;
}

.error-msg {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.admin-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .product-table {
        font-size: 12px;
    }

    .product-table th,
    .product-table td {
        padding: 8px 5px;
    }
}

/* Product Details Page */
.product-details-container {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.product-image-box {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.product-details-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-info-box {
    padding: 10px;
}

.product-details-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-badge {
    background: var(--success-green);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
}

.category-tag {
    background: var(--flipkart-blue);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.product-price-box {
    margin-bottom: 20px;
}

.details-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}

.details-original-price {
    margin-left: 10px;
    font-size: 18px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.details-discount {
    margin-left: 10px;
    font-size: 18px;
    color: var(--success-green);
    font-weight: bold;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-actions {
    margin: 20px 0;
}

.product-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-meta p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.details-buy-btn {
    display: inline-block;
    background: #ff9f00;
    padding: 14px 25px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
}

.details-buy-btn:hover {
    background: #fb8c00;
}

.details-buy-btn i {
    margin-right: 8px;
}

.related-section {
    margin-top: 40px;
}

.related-title {
    margin: 20px 0;
    font-size: 22px;
    font-weight: bold;
}

.product-not-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 8px;
}

.product-not-found h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-not-found a {
    color: var(--flipkart-blue);
}

/* Pagination */
.pagination-container {
    margin-top: 25px;
    text-align: center;
}

.page-number,
.page-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 5px;
    border: 1px solid var(--flipkart-blue);
    color: var(--flipkart-blue);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.page-number.active,
.page-number:hover,
.page-btn:hover {
    background: var(--flipkart-blue);
    color: #fff;
}

.buy-now-btn {
    display: block;
    background: #ff9f00;
    padding: 10px;
    color: #000;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

.buy-now-btn:hover {
    background: #fb8c00;
}

/* Social Widget */
.social-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.social-link {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.social-link.whatsapp {
    background: #25D366;
}

.social-link.call {
    background: #007bff;
}

.social-link.telegram {
    background: #0088cc;
}

/* Responsive adjustments for social widget */
@media (max-width: 768px) {
    .social-widget {
        bottom: 15px;
        right: 15px;
        gap: 15px;
    }

    .social-link {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Clients Slider */
.clients-section {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.clients-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
}

.clients-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.clients-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 50px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-slide {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: #fff;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.client-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--flipkart-blue);
}

.client-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-slide:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .client-slide {
        width: 120px;
        height: 80px;
    }

    .clients-track {
        gap: 30px;
    }
}

/* Static Pages */
.static-page {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.static-page h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.static-page h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.static-page p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.static-page ul {
    margin: 15px 0;
    padding-left: 30px;
}

.static-page li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.contact-info-item {
    text-align: center;
}

.contact-info-item i {
    font-size: 40px;
    color: var(--flipkart-blue);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-info-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-info-item a {
    color: var(--flipkart-blue);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}
/* Clients Slider - Single Image Slider */
.clients-slider-single {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 50px;
}

.clients-viewport {
    overflow: hidden;
    width: 100%;
}

.clients-track-single {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.client-slide-single {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.client-slide-single a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 120px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.client-slide-single a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--flipkart-blue);
}

.client-slide-single img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.3s;
}

.client-slide-single a:hover img {
    filter: none;
}

.client-name {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--flipkart-blue);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.slider-arrow:hover {
    background: #1a5ac6;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

@media (max-width: 768px) {
    .clients-slider-single {
        padding: 0 40px;
    }
    
    .client-slide-single a {
        width: 140px;
        height: 90px;
        padding: 10px;
    }
    
    .client-name {
        font-size: 12px;
        max-width: 140px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
