/* IndiShopKart - Flipkart Style Theme Main CSS */

: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;
}

* {
    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(--white);
    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 6px rgba(0,0,0,0.1);
}

.header-top {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

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

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

.search-form {
    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: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
}

.search-btn {
    padding: 10px 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: 15px;
    align-items: center;
}

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

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

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

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

.nav-menu 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;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

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

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

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    list-style: none;
}

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

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

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

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

.product-card:hover .product-image img,
li.product:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

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

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

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

.product-price {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-percent {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-rating {
    font-size: 12px;
    color: var(--text-light);
    margin: 5px 0;
}

.product-rating .stars {
    color: #fbbf24;
}

/* ===== BUY NOW BUTTON ===== */
.btn-buy-now,
.product-actions .btn-primary,
.woocommerce-LoopProduct-link {
    background: var(--accent-blue) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-align: center;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: auto !important;
}

.btn-buy-now:hover,
.product-actions .btn-primary:hover {
    background: var(--accent-hover) !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-buy-now:active {
    transform: scale(0.98);
}

/* ===== HIDE UNWANTED BUTTONS ===== */
.add-to-cart,
.add_to_cart_button,
.add-to-wishlist,
.wishlist-button,
.compare-button,
.quick-view-button,
.product-buttons .btn:not(.btn-buy-now),
.cart_button,
.wishlist_button,
.compare_button {
    display: none !important;
}

/* ===== AD SPACES ===== */
.ad-space,
.ads-container {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
}

.ad-space-wrapper {
    margin-bottom: 20px;
}

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

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

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

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

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

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

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

.affiliate-disclaimer {
    margin-top: 10px;
    font-size: 12px !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    margin: 15px 0;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== PAGINATION ===== */
.pagination,
.wp-pagenavi {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--white);
}

.page-numbers a:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.page-numbers.current {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}
