/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Product Sticky Footer (Mobile) */
.product-sticky-bar {
    display: none;
    position: fixed;
    bottom: var(--bottom-nav-height);
    /* Above bottom nav */
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .product-sticky-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
}

/* Volume Pricing Accordion */
.volume-pricing {
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #fffbeb;
    /* Amber-50 */
    margin-bottom: 1.5rem;
}

.volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
}

.volume-content {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    display: none;
}

.volume-pricing.active .volume-content {
    display: block;
}

:root {
    /* InduCatalog Theme */
    --primary: #F2971F;
    /* Indu-Orange */
    --primary-dark: #d97706;
    /* Darker Orange for Hover */
    --primary-light: #fef3c7;
    /* Light Amber */

    --bg-body: #F8FAFC;
    /* Slate-50 */
    --bg-card: #ffffff;
    --bg-header: #ffffff;

    --text-main: #0f172a;
    /* Slate-900 */
    --text-muted: #64748b;
    /* Slate-500 */
    --text-light: #94a3b8;
    /* Slate-400 */
    --text-inverse: #ffffff;

    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --header-height: 64px;
    --bottom-nav-height: 60px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--bottom-nav-height);
    /* Space for bottom nav */
}

/* Utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    body {
        padding-bottom: 70px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Header & Nav */
header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
}

.nav-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Combined Search/Filter Bar (New) */
.search-filter-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    max-width: 600px;
    transition: var(--transition);
}

.search-filter-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.search-select {
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    border-right: 1px solid var(--border);
    outline: none;
    cursor: pointer;
    max-width: 140px;
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    outline: none;
    color: var(--text-main);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-light);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-card);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 151, 31, 0.2);
    /* Primary transparent */
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Home Page Components */
.hero-card {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.action-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.action-card i {
    font-size: 1.75rem;
    color: var(--primary);
}

.category-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    /* Padding for shadow */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-item {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cat-item:hover .cat-icon {
    border-color: var(--primary);
    transform: scale(1.05);
    background: var(--primary-light);
}

/* Product Card Improvements */
.product-image-container {
    height: 240px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed to contain to show full product */
}

.card:hover .product-image-container img {
    transform: scale(1.05);
}

.card:hover .product-overlays {
    opacity: 1 !important;
}

/* Grid & Utilities */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.05);
}

/* Footer & other existing styles retained/adapted */
footer {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-body);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* FAQ Section */
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body);
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    border-top: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* A+ Content */
.aplus-content {
    margin: 3rem 0;
}

.aplus-module {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.aplus-module.reverse {
    flex-direction: row-reverse;
}

.aplus-text {
    flex: 1;
}

.aplus-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* SEO Content Block */
.seo-content-block {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.seo-content-block h2,
.seo-content-block h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-top: 1.5rem;
}

.seo-content-block a {
    color: var(--primary);
    text-decoration: underline;
}

/* Hero Enhanced */
.hero-enhanced {
    background: var(--hero-gradient);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-hero-pattern);
    opacity: 1;
    z-index: 0;
}

.hero-enhanced .container {
    position: relative;
    z-index: 1;
}

.hero-enhanced h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-enhanced p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Responsiveness */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-drawer .drawer-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer .drawer-link.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* A+ Content Mobile */
    .aplus-module,
    .aplus-module.reverse {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Stack Search Filter on Mobile */
    .search-filter-container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        padding: 0.75rem;
        gap: 0.75rem;
        height: auto;
    }

    .search-select {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.75rem;
        margin-bottom: 0;
    }

    .search-input {
        width: 100%;
        padding: 0.5rem 0;
    }

    .search-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    header {
        height: auto;
        padding: 0.5rem 0;
    }

    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    position: relative;
}

/* Helper Classes */
.hover\:text-primary:hover {
    color: var(--primary) !important;
}

.hover\:bg-gray-100:hover {
    background-color: #f1f5f9 !important;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Print Specifics */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Product Page Specifics */
.product-page-hero {
    background: var(--hero-gradient);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
}

.product-detail-card {
    padding: 2rem;
}

.product-display-image {
    height: 400px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-display-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Product Page Optimizations */
@media (max-width: 768px) {
    .product-page-hero {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .product-page-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .product-detail-grid {
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }

    .product-display-image {
        height: 300px;
    }

    .product-detail-card {
        padding: 1rem;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .tab-scroller {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .tab-content {
        padding: 1rem !important;
    }

    .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .product-actions-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}