@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --bg-dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --accent-gold: #ffcc00;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Header & Navigation --- */
.back-arrow {
    margin-bottom: 30px;
}

.back-arrow a {
    display: inline-flex;
    align-items: center;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.back-arrow a:hover {
    transform: translateX(-5px);
}

.back-arrow span {
    margin-right: 8px;
    font-size: 1.2rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Professional Product Grid --- */
.product-container {
    display: grid;
    /* This creates a responsive grid automatically */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* Ensures image stays inside rounded corners */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-gold);
}

/* Image Handling - The key to a pro look */
.product-card img {
    width: 100%;
    height: 220px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops image cleanly */
    border-bottom: 1px solid var(--border-color);
}

.product-card h3 {
    font-size: 1.25rem;
    margin: 20px 20px 10px;
    color: var(--text-main);
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 20px 25px;
    flex-grow: 1; /* Pushes content down if needed */
}

/* "Discover More" Link Styling */
.product-card a {
    display: inline-block;
    margin: 0 20px 25px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Request Info Button --- */
.request-info {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.request-button {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.request-button:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

/* --- Modal & Form Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); /* Modern blur effect */
}

.modal-content {
    background-color: #222;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--accent-gold);
}

.form-title {
    margin-top: 0;
    color: var(--accent-gold);
}

/* Modern Input Fields */
.form-control, .form-select {
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

/* Simulate Bootstrap Floating Labels if JS/BS isn't loaded */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Move label up when input has value or focus */
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-25px) scale(0.9);
    left: 0;
    padding-left: 0;
    color: var(--accent-gold);
}

.btn-gold {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-gold);
    color: #000;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.btn-gold:hover {
    background-color: #e6b800;
}

/* Input Group Fixes */
.input-group {
    display: flex;
    gap: 10px;
}
.btn-secondary {
    background: #444;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-verify {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
}