/* IndiShopKart - Advanced Theme Main Styles */

:root {
    --primary-navy: #0d0625;
    --secondary-navy: #1a1a2e;
    --light-navy: #2d2d5f;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --accent-blue: #2563eb;
    --accent-hover: #1e40af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-top-bar {
    background: rgba(0,0,0,0.2);
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.top-bar-link:hover {
    color: var(--white);
}

.separator {
    color: rgba(255,255,255,0.3);
    margin: 0 10px;
}

.header-main {
    padding: 15px 0;
}

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

.logo-wrapper {
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo-wrapper img {
    max-height: 45px;
    width: auto;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
}

.search-form {
    position: relative;
}

.search-input-group {
    display: flex;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
}

.search-btn {
    padding: 12px 20px;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-hover);
}

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

.action-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.action-link:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* NAVIGATION */
.site-navigation {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.nav-menu > li > a {
    display: block;
    padding: 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-menu > li > a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: var(--light-gray);
}

.nav-menu li.current-menu-item > a {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    font-weight: 600;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 6, 37, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* CATEGORIES SECTION */
.category-cards-section {
    background: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.view-all-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.category-card {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.category-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-gray);
    color: var(--text-light);
}

.category-info {
    padding: 15px;
}

.category-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-count {
    font-size: 12px;
    color: var(--text-light);
}

/* PRODUCTS SECTION */
.featured-products-section,
.top-rated-section,
.category-spotlight-section {
    background: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    list-style: none;
}

/* PRODUCT CARD */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.product-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

.product-badge-outofstock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cat-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: 8px 0;
}

.stars {
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: 2px;
}

.rating-text {
    color: var(--text-dark);
    font-weight: 600;
}

.review-count {
    color: var(--text-light);
    font-size: 11px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
    margin: 8px 0;
}

.product-excerpt {
    font-size: 12px;
    color: var(--text-light);
    margin: 8px 0;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* BUTTONS */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 1;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-buy-now {
    width: 100%;
}

/* NEWSLETTER */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
}

.newsletter-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 12px 30px;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

/* TRUST BADGES */
.trust-badges-section {
    background: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
}

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

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

.badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 40px;
}

.badge h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge p {
    font-size: 14px;
    color: var(--text-light);
}

/* FOOTER */
.site-footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 40px;
}

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

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

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

.footer-section li,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright,
.affiliate-note {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.affiliate-note {
    margin-top: 10px;
}

/* MAIN */
.main-content {
    flex: 1;
    padding: 20px 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
}

.home-wrapper {
    flex: 1;
}
