/* ================ RESET & BASE ================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: #2c3e50;
    text-decoration: none;
}

a:hover {
    color: #8b7355;
}

/* ================ NAVBAR ================ */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-left: 50px;
}

.navbar-nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.navbar-nav a:hover {
    color: #8b7355;
}

.navbar-icons {
    display: flex;
    gap: 20px;
}

.icon-btn {
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.icon-btn:hover {
    background-color: #f5f5f5;
    border-color: #8b7355;
}

/* ================ CONTAINER & LAYOUT ================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* ================ CUSTOM ORDERS SECTION ================ */
.custom-orders-section {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/Hanimor/images/Machies01.png'), url('/Hanimor/images/Machies01.png'), url('/Hanimor/images/Printing01.png'), url('/Hanimor/images/Finishing table.png');
    background-size: cover, 55% 55%, 55% 55%, 55% 55%, 55% 55%;
    background-position: center, top left, top right, bottom left, bottom right;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, scroll, scroll, scroll;
    background-attachment: scroll, scroll, scroll;
    color: white;
    padding: 120px 40px;
    border-radius: 8px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-orders-section h2 {
    color: white;
}

.custom-orders-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* ================ HERO BANNER ================ */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/Hanimor/images/GarmentsFront.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, scroll;
    color: white;
    padding: 100px 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 60px;
    min-height: 400px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 3px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ================ PRODUCTS GRID ================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #8b7355;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    gap: 10px;
}

/* ================ BUTTONS ================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #8b7355 0%, #a08968 100%);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #34495e;
    color: white;
    border-color: #34495e;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.btn-small {
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.btn-full {
    width: 100%;
    display: block;
}

/* ================ FORMS ================ */
form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

form[style*="display: inline"] {
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

form[style*="display: inline"] button {
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ================ ALERTS ================ */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ================ TABLES ================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #ecf0f1;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
    color: #2c3e50;
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ================ FOOTER ================ */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 20px 20px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
}

.footer-section a:hover {
    color: #8b7355;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 13px;
}

.footer-bottom a {
    color: #A52A2A;
    font-weight: bold;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ================ UTILITIES ================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-40 {
    padding: 40px 0;
}

/* ================ RESPONSIVE ================ */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }

    .navbar-nav {
        width: 100%;
        margin: 10px 0 0 0;
        gap: 15px;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 20px;
    }

    .navbar-nav,
    .navbar-icons {
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }
}
