/* GENERAL -------------------------------------------------- */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

.content {
    padding: 20px 40px;
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin: 40px 0 20px;
}

/* HEADER --------------------------------------------------- */

.site-header {
    background: #111;
    padding: 10px 20px;
    color: #fff;
}

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

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.placeholder-logo {
    width: 70px;
    height: 70px;
    background: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-weight: bold;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 20px;
    font-weight: bold;
}

.brand-subtitle {
    font-size: 13px;
    color: #ccc;
}

.nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover {
    opacity: 0.7;
}

/* FLASH MESSAGES ------------------------------------------- */

.flash-container {
    margin: 10px 40px 0 40px;
}

.flash {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

.flash-success { background: #d4edda; }
.flash-danger  { background: #f8d7da; }
.flash-warning { background: #fff3cd; }
.flash-info    { background: #cce5ff; }

/* HERO ----------------------------------------------------- */

.hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-bottom: 4px solid #333;
    margin-bottom: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg-fallback {
    background: #222;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    text-align: center;
    padding-top: 90px;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.hero-logo {
    width: 260px;
    max-width: 90%;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 20px;
    font-size: 16px;
}

.hero-btn {
    background: #ff5500;
    padding: 10px 22px;
    color: white;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none;
}

.hero-btn:hover {
    opacity: 0.85;
}

/* ABOUT ---------------------------------------------------- */

.about-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.about-section p {
    line-height: 1.5;
}

.home-email-usage {
    text-align: left;
    margin-top: 20px;
}

.home-email-usage ul {
    list-style: none;
    padding-left: 0;
}

.home-email-usage li {
    margin-bottom: 8px;
}

/* CONTACT ROUTING ------------------------------------------ */

.contact-intro {
    text-align: center;
    margin-bottom: 10px;
}

.contact-routing {
    margin-top: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.contact-card h3 {
    margin-top: 0;
}

.contact-card .email a {
    font-weight: bold;
    color: #ff5500;
    word-break: break-all;
}

.contact-note {
    margin-top: 10px;
    font-size: 14px;
}

/* FORM CARDS ----------------------------------------------- */

.form-card {
    max-width: 500px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-card input,
.form-card select,
.form-card textarea {
    padding: 8px;
    font-size: 14px;
}

.btn {
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #ff5500;
    color: white;
    padding: 10px;
    border-radius: 6px;
}

.btn-secondary {
    background: #444;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-right: 6px;
}

.btn-secondary:hover,
.btn-primary:hover {
    opacity: 0.9;
}

.form-links {
    margin-top: 8px;
    font-size: 14px;
}

/* PROFILE -------------------------------------------------- */

.profile-card {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.profile-card h2 {
    margin-top: 0;
}

.profile-actions {
    margin-top: 15px;
}

/* PRODUCTS -------------------------------------------------- */

.products-section {
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 25px;
}

.product-card {
    background: white;
    text-decoration: none;
    color: black;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    min-height: 320px;
    box-sizing: border-box;
}

.product-card img,
.product-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #ddd;
}

.product-card h3 {
    margin: 10px 0 5px;
}

.product-card .price {
    font-weight: bold;
    color: #ff5500;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 14px;
    color: #333;
}

.no-products {
    text-align: center;
    margin: 30px 0;
}

/* PRODUCT DETAIL ------------------------------------------- */

.product-detail {
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.product-detail-media img,
.product-placeholder.large {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    background: #ddd;
}

.product-detail-info .price {
    font-size: 20px;
    font-weight: bold;
    color: #ff5500;
    margin-bottom: 10px;
}

.product-contact-note {
    margin-top: 20px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeeba;
}

/* ADMIN ---------------------------------------------------- */

.admin-grid {
    max-width: 900px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
}

.admin-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.admin-actions {
    max-width: 900px;
    margin: 0 auto 10px auto;
    text-align: right;
}

.admin-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-thumb-large {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-top: 10px;
}

.link-button {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* FOOTER --------------------------------------------------- */

.site-footer {
    margin-top: 60px;
    text-align: center;
    padding: 25px;
    background: #111;
    color: white;
}

.site-footer p {
    margin: 4px 0;
}

/* RESPONSIVE ----------------------------------------------- */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        margin-top: 10px;
    }

    .content {
        padding: 15px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-info {
    margin-top: 10px;
    font-size: 14px;
}

.gallery-tags {
    font-size: 13px;
    color: #555;
}

.gallery-product {
    font-weight: bold;
}
