:root {
    --primary: #FF6600;
    /* Bashiti-like Orange */
    --primary-dark: #cc5200;
    --dark: #222222;
    --gray-bg: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --border: #e0e0e0;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    /* Slightly squarer for professional look */
}

/* Base Reset */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: var(--gray-bg);
    color: var(--text);
    padding-bottom: 70px;
    /* Mobile nav space */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

/* Desktop/Mobile Utilities */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: flex !important;
    }

    /* or block based on context */
    body {
        padding-bottom: 0;
    }
}

/* --- 1. Top Bar (Black) --- */
.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar a:hover {
    color: var(--primary);
}

.separator {
    margin: 0 10px;
    color: #555;
}

.justify-between {
    justify-content: space-between;
}

/* --- 2. Main Header (White) --- */
.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    height: 50px;
}

/* Adjustable */

/* Search Area */
.search-area {
    flex-grow: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 4px;
    /* Boxy look */
    overflow: hidden;
}

.header-search-input {
    flex-grow: 1;
    border: none;
    padding: 0 15px;
    height: 40px;
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    cursor: pointer;
    font-size: 18px;
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.action-item i {
    font-size: 24px;
    color: #555;
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 13px;
}

.action-text .bold {
    font-weight: bold;
    font-size: 14px;
}

.icon-wrap {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

/* --- 3. Category Nav (Orange) --- */
.category-nav {
    background: var(--primary);
    color: white;
}

.nav-list {
    display: flex;
    gap: 30px;
    font-weight: 600;
    font-size: 15px;
}

.nav-list a {
    display: block;
    padding: 12px 0;
    position: relative;
}

.nav-list a:hover {
    color: var(--dark);
}

/* --- Mobile Menu & Sidebar --- */
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    /* Hidden */
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
}

.sidebar-list li {
    border-bottom: 1px solid #eee;
}

.sidebar-list a {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    font-weight: 500;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    background: url('https://via.placeholder.com/1920x600/333/555?text=Hardware+Tools+Banner') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    /* Overlay */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.hero-text {
    color: white;
    max-width: 600px;
    padding: 20px;
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Button Styles */
.btn,
.btn-hero {
    background: var(--primary);
    color: white;
    padding: 18px 24px;
    /* Larger Padding */
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    width: 100%;
    display: inline-block;
    font-size: 18px;
    /* Larger Font */
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    /* Stronger Shadow */
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn:hover,
.btn-hero:hover {
    background: #e65c00;
}

.btn:active {
    transform: scale(0.98);
}


/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-container {
    padding: 40px 0;
}

.bg-light {
    background: white;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* --- Categories Circle --- */
.category-circles {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.circle-item {
    text-align: center;
    min-width: 100px;
}

.circle-img {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    margin: 0 auto 10px;
    transition: 0.3s;
}

.circle-item:hover .circle-img {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.circle-text {
    font-weight: 600;
    font-size: 14px;
}


/* --- Product Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 cols */
    gap: 15px;
}

@media(min-width: 768px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: white;
    border: 1px solid #eee;
    /* Professional Border */
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d32f2f;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
}

.product-img-area {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
}

.product-icon {
    font-size: 60px;
    color: #ccc;
}

.tool-text {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
}

.price-small {
    color: var(--primary);
    font-size: 18px;
    font-weight: bold;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

/* --- Footer --- */
.main-footer {
    background: #111;
    color: #bbb;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
    border-right: 3px solid var(--primary);
    padding-right: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

/* --- Bottom Nav (Mobile) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 11px;
}

.nav-icon i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-icon.active {
    color: var(--primary);
}

/* --- Filter & Controls --- */
.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

/* Review Section Styling */
.write-review-box {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.star-rating {
    font-size: 28px;
    /* Larger stars */
    color: #bbb;
    /* Darker grey for visibility */
    cursor: pointer;
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.star-rating i:hover,
.star-rating i.active {
    color: #FFD700;
    /* Gold/Yellow on hover/active */
}

.review-text-area {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: var(--radius);
    min-height: 100px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.review-text-area:focus {
    border-color: var(--primary);
    outline: none;
}

/* Existing classes ends here, ensuring clean file text */
/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 20px;
}

.form-input,
.settings-select,
.file-input-padding {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: 14px;
    transition: 0.3s;
    background: #fff;
    color: var(--text);
}

.form-input:focus,
.settings-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Modal Stying */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: var(--danger);
}

/* Input Group Row */
.input-group-row {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 50px;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    cursor: pointer;
}

.btn-icon:hover {
    background: #ddd;
}

.d-block {
    display: block;
}

.fw-bold {
    font-weight: 700;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.text-center {
    text-align: center;
}

/* --- Login Page Responsive Styles --- */
.center-content {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

@media(min-width: 768px) {
    .form-container {
        max-width: 400px;
    }
}


/* --- Categories Page Grid Utilities --- */
.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.circle-img.large {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.p-20 {
    padding: 20px;
}

.fs-30 {
    font-size: 30px;
}

.fs-16 {
    font-size: 16px;
}

.no-decor {
    text-decoration: none;
    color: inherit;
}

/* --- Login Page Spacing --- */
.pt-50 {
    padding-top: 50px;
}

.logo-icon-lg {
    width: 120px;
}

.label-rtl {
    text-align: right;
}