/* ============================================
   IqbalGSM Theme - Martview Inspired Design
   ============================================ */

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-hover: #d63851;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50px;
    --max-width: 1350px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s ease;
}

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

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.iqbalgsm-topbar {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

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

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

.topbar-left a {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-left a:hover {
    color: #fff;
}

.topbar-right span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
}

.topbar-right span i {
    color: var(--accent);
}

/* ============================================
   HEADER
   ============================================ */
.iqbalgsm-header {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.header-logo a {
    display: flex;
    align-items: center;
}

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

.header-logo .site-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Search Bar */
.header-search {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.header-search .search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.header-search .search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.header-search input[type="text"] {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    background: transparent;
}

.header-search button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Search Dropdown */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 5px;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-item .result-info {
    flex: 1;
}

.search-result-item .result-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.search-result-item .result-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header-action-btn:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.header-action-btn i {
    font-size: 20px;
}

.cart-btn {
    position: relative;
}

.iqbalgsm-cart-count {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.iqbalgsm-nav {
    background: var(--primary);
    position: relative;
    z-index: 999;
}

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

/* Categories Dropdown */
.nav-categories {
    position: relative;
}

.categories-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.categories-toggle:hover {
    background: var(--accent-hover);
}

.categories-toggle i:last-child {
    font-size: 10px;
    transition: var(--transition);
}

.categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 100;
    max-height: 450px;
    overflow-y: auto;
}

.categories-dropdown.active {
    display: block;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.category-item:hover {
    background: var(--bg-light);
    color: var(--accent);
    padding-left: 24px;
}

.category-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.category-item .cat-count {
    margin-left: auto;
    color: var(--text-light);
    font-size: 12px;
}

/* Nav Links */
.nav-links {
    display: flex;
    flex: 1;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent);
}

.nav-right {
    margin-left: auto;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 350px;
    background: var(--bg-white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 4px;
}

.mobile-menu-search {
    padding: 15px 20px;
}

.mobile-menu-search form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mobile-menu-search input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.mobile-menu-search button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.mobile-menu-links a {
    display: block;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-menu-links a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    min-height: 60vh;
}

/* Elementor overrides for consistency */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--max-width);
}

/* ============================================
   FOOTER
   ============================================ */
.iqbalgsm-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    margin-top: 40px;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    max-height: 45px;
    filter: brightness(10);
}

.footer-logo .site-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.footer-about {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-list a {
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-list a:hover {
    color: #fff;
}

.footer-contact-list i {
    color: var(--accent);
    width: 18px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
}

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

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.payment-methods {
    display: flex;
    gap: 12px;
}

.payment-methods i {
    font-size: 28px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   HERO SLIDER (Martview Style)
   ============================================ */
.hero-section {
    padding: 20px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
    min-height: 380px;
}

/* Slider */
.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 5px;
}

/* Hero Side Cards */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-card {
    flex: 1;
    border-radius: var(--radius-md);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    transition: var(--transition);
    overflow: hidden;
    min-height: 100px;
}

.hero-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.hero-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-card-title {
    font-size: 17px;
    font-weight: 700;
}

.hero-card-count {
    font-size: 12px;
    opacity: 0.7;
}

.hero-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-card-icon {
    font-size: 40px;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-link {
        padding: 14px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-slider { min-height: 200px; }

    .hero-side { flex-direction: row; }

    .hero-card { padding: 15px; min-height: 80px; }
    .hero-card-title { font-size: 13px; }

    .topbar-right {
        display: none;
    }

    .header-inner {
        gap: 15px;
    }

    .header-search {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .iqbalgsm-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .topbar-left {
        flex-direction: column;
        gap: 4px;
    }
}
