@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root{--ink:#18262b;--teal:#0d5c62;--teal2:#0a4148;--brass:#c68d34;--cream:#f3f7fb;--line:#d9e1ea;--muted:#71808d;--white:#fff;--blue:#2864e8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f8fb;color:var(--ink);font-family:'Vazirmatn',Tahoma,Arial,sans-serif}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.topbar{background:#435660;color:#ecf3f5;font-size:12px}.topbar-inner{display:flex;justify-content:space-between;padding:9px 0}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:11px;font-weight:bold}.brand img{width:52px;height:52px;object-fit:cover;border-radius:12px}.brand span{max-width:105px;line-height:1.5}nav{display:flex;gap:30px}nav a,.text-link{color:var(--ink);text-decoration:none;font-size:14px;font-weight:bold}.nav-actions{display:flex;align-items:center;gap:9px}.cart-button,.account-button,.admin-button{font:700 12px 'Vazirmatn',Tahoma;border:1px solid var(--line);background:#fff;border-radius:8px;padding:11px 13px;cursor:pointer;text-decoration:none;color:var(--ink)}.admin-button{color:var(--teal)}.cart-button b{background:var(--brass);color:#fff;border-radius:50%;padding:3px 7px;margin-right:4px}.hero{height:570px;position:relative;overflow:hidden;background:var(--ink);color:#fff}.hero-bg{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(10,34,38,.06),rgba(10,34,38,.82)),url('assets/hero-industrial.png');background-size:cover;background-position:center}.hero-content{position:relative;padding-top:112px}.eyebrow{color:var(--brass);font-size:11px;letter-spacing:2px;font-weight:bold;margin-bottom:16px}.hero h1{font-size:58px;line-height:1.25;margin:0 0 20px}.hero h1 em{color:#bce1d8;font-style:normal}.hero p{max-width:405px;color:#d6e1df;line-height:2;font-size:16px;margin-bottom:30px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:7px;padding:13px 22px;text-decoration:none;font:700 13px 'Vazirmatn',Tahoma;cursor:pointer}.primary{background:var(--blue);color:#fff}.dark{background:var(--ink);color:#fff}.secondary{background:#e7edf2;color:var(--ink)}.full{width:100%}.hero-stamp{position:absolute;left:7%;bottom:48px;border:1px solid #ffffff55;border-radius:50%;width:128px;height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:11px;line-height:1.8}.hero-stamp strong{font-size:22px;color:var(--brass)}.trust-strip{background:var(--teal);color:#ecf4ed;display:flex;justify-content:center;gap:70px;padding:21px 20px;font-size:13px}.section{padding:86px 0 0}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:32px}.section h2,.about-card h2{font-size:30px;margin:0}.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.category-card{isolation: isolate;min-height:210px;padding:28px;border-radius:16px;position:relative;overflow:hidden;color:#fff;background:var(--teal2)}.category-card:nth-child(2){background:var(--ink)}.category-card h3{font-size:24px;margin:8px 0}.category-card p{color:#c5d8d4;font-size:13px;max-width:100%;line-height:1.8;text-align:justify;white-space:pre-wrap;}.cat-icon{position:absolute;left:30px;bottom:-20px;font-size:110px;opacity:.14}.category-card .text-link{border:0;background:none;color:#fff;cursor:pointer;font-family:inherit}.filters{display:flex;gap:8px}.filter{font:12px 'Vazirmatn',Tahoma;background:#fff;border:1px solid var(--line);border-radius:20px;padding:8px 16px;cursor:pointer;color:var(--muted)}.filter.active{background:var(--teal);color:#fff;border-color:var(--teal)}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{isolation: isolate;background:#fff;border:1px solid #e3e8e4;border-radius:15px;overflow:hidden}.product-image{height:210px;background:linear-gradient(135deg,#dce9e5,#f4eee4);display:flex;align-items:center;justify-content:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.pipe-art{font-size:100px}.product-info{padding:20px}.product-meta{font-size:11px;color:var(--teal);font-weight:bold}.product-card h3{font-size:16px;margin:8px 0 8px}.product-description{font-size:12px;color:var(--muted);min-height:40px;line-height:1.7}.product-bottom{display:flex;justify-content:space-between;align-items:center}.price{font-size:15px;font-weight:bold}.price small{font-size:10px;color:var(--muted);font-weight:normal}.add-btn{border:0;background:#e9f2ef;color:var(--teal);border-radius:8px;width:38px;height:38px;cursor:pointer;font-size:20px}.about-card{background:#dce9e3;border-radius:18px;padding:48px;display:grid;grid-template-columns:1fr 1.3fr;align-items:center;gap:40px;margin:80px auto 70px}.about-card p{line-height:2;color:#405a58;font-size:15px}.modal-backdrop{display:none;position:fixed;inset:0;background:#07191bcc;z-index:10}.modal-backdrop.show{display:block}.modal{display:none;position:fixed;z-index:12;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;width:min(620px,calc(100% - 30px));max-height:90vh;overflow:auto;border-radius:10px;padding:28px;box-shadow:0 20px 60px #17262b30}.modal.show{display:block}.modal h3{margin:0 0 20px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.field label{font-size:12px;font-weight:bold}.field input,.field select,.field textarea{border:1px solid #cbd7e3;border-radius:7px;padding:12px;font:13px 'Vazirmatn',Tahoma;background:#fff}.field textarea{min-height:100px;resize:vertical}.tabs{display:flex;gap:6px;margin-bottom:20px}.tabs button{flex:1;border:0;background:#edf2f6;padding:11px;border-radius:7px;cursor:pointer;font-family:inherit}.tabs button.active{background:var(--blue);color:#fff}.cart-drawer{position:fixed;z-index:11;right:0;top:0;height:100vh;width:min(420px,100%);background:#fff;transform:translateX(110%);transition:.3s;padding:24px;display:flex;flex-direction:column;box-shadow:-10px 0 30px #00000012}.cart-drawer.open{transform:translateX(0)}.drawer-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px}.drawer-head button{background:none;border:0;font-size:28px;cursor:pointer}.cart-row{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.cart-row strong{display:block}.cart-row small{display:block;color:var(--muted);margin-top:7px}.cart-row button{margin-right:auto;border:0;background:none;color:#9b4b3d;cursor:pointer}.cart-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:18px}.cart-footer\u003ediv{display:flex;justify-content:space-between;margin-bottom:16px}.empty{color:var(--muted);text-align:center;padding:50px 0}.admin-body{background:#f1f5f9;min-height:100vh}.admin-login{min-height:100vh;display:grid;place-items:center;padding:25px}.login-card{width:min(438px,100%);background:#fff;border-radius:14px;padding:34px 28px;box-shadow:0 15px 35px #142b3b16}.login-mark{font-weight:bold;color:var(--blue);letter-spacing:3px;font-size:13px}.login-card h1{font-size:24px;margin:22px 0 10px}.login-card p{color:var(--muted);font-size:13px;line-height:1.8}.back-link{display:block;text-align:center;margin-top:20px;color:var(--muted);font-size:12px;text-decoration:none}.error-box{background:#fff0f0;border:1px solid #f0bbbb;color:#a32c2c;border-radius:7px;padding:10px;margin:15px 0;font-size:12px}.admin-shell{display:flex;min-height:100vh}.admin-sidebar{width:245px;background:#fff;border-left:1px solid var(--line);padding:28px 16px;display:flex;flex-direction:column;gap:7px}.admin-logo{font-weight:bold;color:var(--blue);letter-spacing:2px;margin:5px 10px 30px}.admin-logo small{display:block;font-size:8px;color:var(--muted);letter-spacing:1px;margin-top:5px}.admin-sidebar button,.admin-sidebar a{border:0;background:none;color:var(--ink);font:700 13px 'Vazirmatn',Tahoma;text-align:right;border-radius:7px;padding:13px 14px;cursor:pointer;text-decoration:none}.admin-sidebar button.active,.admin-sidebar button:hover,.admin-sidebar a:hover{background:#eaf0ff;color:var(--blue)}.admin-sidebar .logout{margin-top:auto;color:#9b3535}.admin-content{flex:1;padding:36px;max-width:1300px}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.admin-header h1{margin:0;font-size:26px}.admin-status{background:#eaf7ef;color:#218348;border-radius:20px;padding:8px 14px;font-size:11px}.admin-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.admin-toolbar h2{margin:0;font-size:20px}.admin-toolbar span{color:var(--muted);font-size:12px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px}.admin-table{width:100%;border-collapse:collapse;font-size:12px}.admin-table th,.admin-table td{padding:16px 14px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.admin-table th{color:var(--muted);font-size:11px}.admin-table td small{display:block;color:var(--muted);margin-top:5px}.admin-table button,.admin-table select{border:0;background:#edf2f6;border-radius:5px;padding:7px 9px;font:11px 'Vazirmatn',Tahoma;margin-left:5px}.status{border-radius:15px;padding:5px 9px;font-size:10px}.status.ok{background:#e7f7ed;color:#207c43}.status.pending{background:#fff5dc;color:#956814}.category-admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.category-admin-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px}.category-admin-card p{color:var(--muted);font-size:12px;line-height:1.8}.category-admin-card small{font-size:10px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full-field{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}@media(max-width:800px){nav{display:none}.hero h1{font-size:42px}.hero-stamp{display:none}.trust-strip{gap:15px;justify-content:space-between;font-size:10px;flex-wrap:wrap}.product-grid{grid-template-columns:repeat(2,1fr)}.about-card{grid-template-columns:1fr;padding:30px}.admin-shell{display:block}.admin-sidebar{width:100%;min-height:auto}.admin-content{padding:22px}.form-grid{grid-template-columns:1fr}.full-field{grid-column:auto}}@media(max-width:520px){.wrap{width:min(100% - 28px,1180px)}.brand span{display:none}.hero{height:540px}.category-grid,.product-grid,.category-admin-grid{grid-template-columns:1fr}.section{padding-top:60px}.section-head{align-items:start;gap:15px;flex-direction:column}.topbar-inner{font-size:10px}.nav-actions{gap:4px}.cart-button,.account-button,.admin-button{padding:9px 7px;font-size:10px}}


/* Fix iOS input zoom */
@media screen and (max-width: 768px) { input, select, textarea { font-size: 16px !important; } }



/* --- MOBILE MENU --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color, #333);
    padding: 0 10px;
}
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    .site-header nav {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 60px 20px 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        display: flex !important;
    }
    .site-header nav.open {
        right: 0;
    }
    .site-header nav a, .site-header .nav .category-nav {
        margin: 10px 0;
        font-size: 16px;
        width: 100%;
        text-align: right;
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .nav-overlay.open {
        display: block;
    }
}
/* User Revisions */

.product-image {
    background: #f8fafc; /* slight off-white for blending */
    overflow: hidden;
}

/* Make quick access footer links larger */
.site-footer a {
    font-size: 16px !important;
}

/* Make category descriptions larger */
.category-card p {
    font-size: 14px !important;
    line-height: 1.6;
}

/* Fix Product Images */
.product-image {
    background: #fff !important; /* Always white so product images look good */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.product-image img, .product-card img {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
    max-height: 100%;
}
.category-card img, .product-image img, .product-hero img {
    mix-blend-mode: multiply;
    object-fit: contain !important;
}

/* Fix Mobile Menu */
@media (max-width: 992px) {
    .site-header nav {
        background: var(--bg-color, #ffffff) !important; /* Adapt to dark mode */
        color: var(--text-color, #17202a) !important;
        z-index: 9999 !important;
        overflow-y: auto;
    }
    .site-header nav a, .site-header nav button {
        color: var(--text-color, #17202a) !important;
        display: block !important;
        padding: 15px !important;
        border-bottom: 1px solid var(--border-color, #e2e8f0);
    }
    .nav-overlay {
        z-index: 9998 !important;
    }
    /* Move hero text up a bit */
    .hero-content {
        margin-top: -30px;
    }
    .hero-content p {
        margin-bottom: 10px !important;
    }
}
[data-theme="dark"] .site-header nav {
    background: #1e293b !important;
}
[data-theme="dark"] .site-header nav a, [data-theme="dark"] .site-header nav button {
    color: #e2e8f0 !important;
    border-bottom: 1px solid #334155;
}

/* Quick Search Hero */
.hero-search-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    max-width: 500px;
}
.hero-search-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}
.hero-search-box {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 15px;
}
.hero-search-box input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    border-radius: 10px;
    font-family: inherit;
}
.hero-search-box button {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
.hero-search-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-search-links a {
    border: 1px solid rgba(255,255,255,0.3);
    color: #e2e8f0;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    text-decoration: none;
}

/* Fix Hero Layout */
.hero {
    height: auto !important;
    min-height: 570px;
    padding-bottom: 60px;
}
.hero-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    padding-top: 60px !important;
}
.hero-text-block {
    flex: 1;
    min-width: 300px;
}
.hero-search-card {
    flex: 1;
    min-width: 300px;
    margin-top: 0 !important;
}

/* Fix Mobile Menu Z-Index & Close Button Color */
.site-header nav > button {
    color: inherit !important;
}

/* Fix Header Z-Index */
.site-header {
    z-index: 9999 !important;
}

/* Fix Modal Z-Index so it appears above header */
.modal-backdrop {
    z-index: 10000 !important;
}
.modal {
    z-index: 10001 !important;
}
.cart-drawer { z-index: 10001 !important; }

.contact-card { background: #fff; }
[data-theme="dark"] .contact-card, body.dark-mode .contact-card { background: var(--card-bg, #1a2a30); color: var(--ink, #e0e8f0); }


.category-card {
    display: flex;
    flex-direction: column;
}

.category-card p {
    text-align: justify;
    line-height: 1.8;
}

.cat-image-wrapper {
    margin: 16px 0;
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    /* Use a radial glow to illuminate the pipe while blending the edges! */
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    /* No scale, keep it like the top one */
    transform: none;
    mix-blend-mode: multiply !important;
    /* Increase brightness and contrast so the pipe doesn't get dark */
    filter: brightness(1.1) contrast(1.1);
}