/* =========================================================
   Designs — plugin front-end styles
   ========================================================= */

/* --- Category archive logo --- */
.design-category-logo {
    text-align: center;
    margin: 0 0 2em;
}

.design-category-logo img {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

/* --- Password protected form --- */
.design-protected {
    max-width: 420px;
    margin: 1.5em auto 2em;
    text-align: center;
}

.design-protected form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    justify-content: center;
    align-items: center;
}

.design-protected input[type="password"] {
    padding: 0.7em 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1 1 220px;
}

.design-protected input[type="submit"] {
    padding: 0.7em 1.6em;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.design-protected input[type="submit"]:hover {
    background: #333;
}

/* --- Page layout: logo column + content column --- */
.design-page-wrap {
    display: flex;
    flex-wrap: wrap-reverse; /* logo stacks above content on narrow screens */
    gap: 2.5em;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.design-brand-logo {
    flex: 0 0 220px;
    order: 2; /* sits to the right on desktop */
    text-align: center;
}

.design-brand-logo img {
    max-width: 100%;
    height: auto;
}

.design-main {
    flex: 1 1 500px;
    order: 1; /* content floats to the left on desktop */
    min-width: 0;
}

@media (max-width: 700px) {
    .design-page-wrap {
        flex-direction: column;
    }
    .design-brand-logo {
        flex-basis: auto;
    }
}

/* --- Design images (each paired with its own download button) --- */
.design-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5em;
    margin: 0 0 1.5em;
}

.design-gallery__column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    flex: 0 1 300px;
}

.design-gallery__item {
    display: block;
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.design-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.design-gallery__item:hover img {
    transform: scale(1.03);
}

/* --- Download buttons --- */
.design-downloads {
    text-align: center;
    margin: 2em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.design-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.85em 2.2em;
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.design-download-btn:hover,
.design-download-btn:focus {
    background: #e57373; /* lighter red on hover */
    color: #fff;
    opacity: 0.9;
}

/* --- Design content area --- */
.design-content {
    max-width: 760px;
    margin: 0 auto 2em;
    line-height: 1.7;
}

/* --- Category archive grid ---
   Grid/card layout, spacing, hover states etc. are all inherited from the
   site's existing WooCommerce product-card styling (ul.products / li.product),
   since the template outputs that same markup. */