/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #2f2f2f;
    --accent: #C77D4D;
    --text-primary: #e8e8e8;
    --text-secondary: #a8a8a8;
    --border: #2f2f2f;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
}

#nav {
    display: flex;
    gap: 2rem;
}

#nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

#nav a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1410 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/copper-bar.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #b36d3d;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.section:last-of-type::after {
    display: none;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
}

/* Grid Layouts */
.grid-3, .grid-4 {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Product Section */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.product-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(199, 125, 77, 0.15);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.02);
}

.product-details h3 {
    color: var(--accent);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.product-details h3:first-child {
    margin-top: 0;
}

.specs-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.specs-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.specs-list li:last-child {
    border-bottom: none;
}

/* Verification Section */
.verify-instructions {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
}

.verify-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.verify-form input {
    flex: 1;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    text-transform: uppercase;
}

.verify-form input:focus {
    outline: none;
    border-color: var(--accent);
}

#verifyResult {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    display: none;
}

#verifyResult.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid var(--success);
}

#verifyResult.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error);
}

.verify-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verify-title.success {
    color: var(--success);
}

.verify-title.error {
    color: var(--error);
}

.verify-details {
    display: grid;
    gap: 0.75rem;
}

.verify-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.verify-detail:last-child {
    border-bottom: none;
}

.verify-detail strong {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-info h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-details, .business-hours {
    margin-top: 2rem;
}

.contact-details p, .business-hours p {
    margin: 0.5rem 0;
}

#contactResult {
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-col h4 {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.footer-subsidiary {
    font-size: 0.85rem !important;
    margin-top: 1rem !important;
}

.footer-subsidiary a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-subsidiary a:hover {
    opacity: 0.8;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Admin Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.login-box input {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.admin-container {
    min-height: 100vh;
}

.admin-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    color: var(--accent);
}

.admin-stats {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
}

.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.admin-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.batch-form {
    max-width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input[readonly] {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-card);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: var(--bg-card);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-footer {
    margin-top: 1rem;
    padding: 1rem;
    text-align: right;
    color: var(--text-secondary);
}

.btn-delete {
    background: var(--error);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: #dc2626;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem !important;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    #nav.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .product-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .verify-form {
        flex-direction: column;
    }

    .admin-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}
