/* =========================
   CATALOGUE PAGE
========================= */

.catalogue-hero {
    padding: 64px 4.5% 34px;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(212, 175, 55, 0.1),
            transparent 28%
        ),
        linear-gradient(135deg, #07101d, #0d1727);
}

.catalogue-hero-content {
    max-width: 850px;
}

.catalogue-hero .section-label {
    margin-bottom: 14px;
    color: #dfb731;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.4px;
}

.catalogue-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.catalogue-hero-content > p:last-child {
    max-width: 670px;
    margin-top: 18px;
    color: #adb7c5;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================
   CATALOGUE CONTENT
========================= */

.catalogue-section {
    min-height: 70vh;
    padding: 24px 4.5% 90px;
    background: #08111f;
}

.catalogue-toolbar {
    max-width: 1450px;
    margin: 0 auto 30px;
}


/* =========================
   SEARCH
========================= */

.catalogue-search {
    position: relative;
}

.catalogue-search::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 15px;
    height: 15px;
    border: 2px solid #7f8997;
    border-radius: 50%;
    transform: translateY(-58%);
    pointer-events: none;
}

.catalogue-search::after {
    content: "";
    position: absolute;
    top: 53%;
    left: 34px;
    width: 7px;
    height: 2px;
    background: #7f8997;
    transform: rotate(45deg);
    pointer-events: none;
}

.catalogue-search input {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    outline: none;
    background: rgba(15, 24, 39, 0.9);
    color: #ffffff;
    font-size: 15px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.catalogue-search input::placeholder {
    color: #7f8997;
}

.catalogue-search input:focus {
    border-color: rgba(223, 183, 49, 0.75);
    box-shadow: 0 0 0 4px rgba(223, 183, 49, 0.08);
}


/* =========================
   FILTERS
========================= */

.catalogue-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 17px;
}

.filter-button {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(15, 24, 39, 0.82);
    color: #c8d0dc;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.filter-button:hover {
    color: #dfb731;
    border-color: rgba(223, 183, 49, 0.6);
    transform: translateY(-2px);
}

.filter-button.active {
    color: #0b1320;
    border-color: #dfb731;
    background: #dfb731;
}


/* =========================
   DESIGN GRID
========================= */

.designs-grid {
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* =========================
   CLEAN PREMIUM DESIGN CARD
========================= */

.design-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: #0e1828;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.design-card:hover {
    transform: translateY(-7px);
    border-color: rgba(223, 183, 49, 0.7);
    box-shadow:
        0 26px 58px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(223, 183, 49, 0.07);
}

.design-card-image {
    position: relative;
    height: 310px;
    overflow: hidden;
    background: #172233;
}

.design-card-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}

.design-card:hover .design-card-photo {
    transform: scale(1.06);
}

.design-code {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 7px 12px;
    border: 1px solid rgba(223, 183, 49, 0.58);
    border-radius: 999px;
    background: rgba(6, 12, 23, 0.78);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    color: #dfb731;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.design-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 9, 18, 0);
    transition: background-color 0.35s ease;
}

.design-card:hover .design-image-overlay {
    background: rgba(4, 9, 18, 0.22);
}

.quick-view-button {
    min-height: 42px;
    padding: 10px 19px;
    border: 1px solid #dfb731;
    border-radius: 9px;
    background: rgba(7, 13, 24, 0.84);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        color 0.3s ease,
        background-color 0.3s ease;
}

.design-card:hover .quick-view-button {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-button:hover {
    color: #08111f;
    background: #dfb731;
}


/* =========================
   CARD CONTENT
========================= */

.design-card-content {
    padding: 15px 20px 13px;
}

.design-card-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.design-card-top,
.design-category,
.design-card-code,
.design-card-content p {
    display: none;
}

.design-card-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding: 9px 0 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: #dfb731;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.3s ease,
        letter-spacing 0.3s ease;
}

.design-card-link:hover {
    color: #f0c84b;
    letter-spacing: 0.3px;
}

.link-arrow {
    color: #dfb731;
    font-size: 21px;
    transition: transform 0.3s ease;
}

.design-card-link:hover .link-arrow {
    transform: translateX(6px);
}


/* =========================
   EMPTY STATE
========================= */

.empty-catalogue {
    grid-column: 1 / -1;
    padding: 70px 25px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    text-align: center;
    background: rgba(14, 23, 38, 0.65);
}

.empty-catalogue h3 {
    color: #ffffff;
    font-size: 26px;
}

.empty-catalogue p {
    margin-top: 10px;
    color: #98a2b1;
}


/* =========================
   MODAL — TEMPORARILY HIDDEN
========================= */

/* =========================
   DESIGN DETAILS MODAL
========================= */

.design-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.design-modal.open {
    display: flex;
}

.design-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 15, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.design-modal-content {
    position: relative;
    z-index: 2;
    width: min(1120px, 96vw);
    max-height: 90vh;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    overflow: hidden;
    border: 1px solid rgba(223, 183, 49, 0.5);
    border-radius: 22px;
    background: #0c1626;
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(223, 183, 49, 0.08);
}

.design-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(5, 11, 22, 0.78);
    color: #ffffff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.design-modal-close:hover {
    color: #08111f;
    border-color: #dfb731;
    background: #dfb731;
    transform: rotate(90deg);
}

.design-modal-image-wrapper {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #050b14;
}

.design-modal-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: contain;
    background: #050b14;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(5, 11, 22, 0.76);
    color: #ffffff;
    font-size: 21px;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.modal-arrow:hover {
    color: #08111f;
    border-color: #dfb731;
    background: #dfb731;
}

.modal-arrow-left {
    left: 18px;
}

.modal-arrow-right {
    right: 18px;
}

.design-modal-info {
    padding: 72px 34px 36px;
    background:
        radial-gradient(
            circle at top right,
            rgba(223, 183, 49, 0.1),
            transparent 33%
        ),
        #0c1626;
}

.design-modal-code {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid rgba(223, 183, 49, 0.55);
    border-radius: 999px;
    color: #dfb731;
    background: rgba(223, 183, 49, 0.07);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.design-modal-info h2 {
    margin-top: 20px;
    color: #ffffff;
    font-size: 35px;
    line-height: 1.15;
}

.design-modal-category {
    margin-top: 12px;
    color: #dfb731;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.design-modal-description {
    margin-top: 22px;
    color: #aeb7c5;
    font-size: 15px;
    line-height: 1.75;
}

.design-modal-whatsapp {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 14px 20px;
    border: 1px solid #dfb731;
    border-radius: 10px;
    background: linear-gradient(135deg, #e2b934, #d5a824);
    color: #08111f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.design-modal-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(223, 183, 49, 0.2);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 850px) {
    .design-modal {
        padding: 12px;
    }

    .design-modal-content {
        max-height: 94vh;
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .design-modal-image-wrapper,
    .design-modal-image {
        min-height: 360px;
    }

    .design-modal-info {
        padding: 30px 24px 28px;
    }

    .design-modal-info h2 {
        font-size: 28px;
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .designs-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 700px) {
    .designs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .design-card {
        border-radius: 14px;
    }

    .design-card-image {
        height: 210px;
    }

    .design-code {
        top: 9px;
        left: 9px;
        padding: 6px 9px;
        font-size: 9px;
    }

    .design-card-content {
        padding: 11px 12px 10px;
    }

    .design-card-content h3 {
        font-size: 15px;
    }

    .design-card-link {
        margin-top: 7px;
        padding-top: 7px;
        font-size: 12px;
    }

    .link-arrow {
        font-size: 17px;
    }
}

.design-card {
    min-height: auto;
}

.design-card-content {
    padding: 14px 20px 12px;
}

.design-card-link {
    margin-top: 8px;
    padding: 8px 0 0;
}

.design-card-content h3 {
    margin-bottom: 0;
}

.design-modal-image {
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
}

.design-modal-image.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

/* ==================================
   DESIGN COUNT
================================== */

.design-count {
    margin-top: 16px;

    color: #9eabb9;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.design-count strong {
    color: #dfb731;
}

/* =====================================
   SEARCH + FAVOURITES
===================================== */

.catalogue-search-row{

    display:flex;

    align-items:center;

    gap:14px;

    margin-bottom:28px;
}

.catalogue-search{

    flex:1;
}

.catalogue-favourites-button{

    min-width:180px;

    height:54px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:0 18px;

    border:1px solid rgba(223,183,49,.45);

    border-radius:14px;

    background:rgba(223,183,49,.08);

    color:#dfb731;

    text-decoration:none;

    font-size:15px;

    font-weight:700;

    transition:.3s;
}

.catalogue-favourites-button:hover{

    transform:translateY(-3px);

    border-color:#dfb731;

    background:rgba(223,183,49,.14);

    box-shadow:0 12px 25px rgba(0,0,0,.25);
}

.catalogue-favourites-icon{

    font-size:20px;

    line-height:1;
}

.catalogue-favourites-count{

    min-width:26px;

    height:26px;

    display:grid;

    place-items:center;

    border-radius:50%;

    background:#dfb731;

    color:#07101d;

    font-size:13px;

    font-weight:800;
}


/* Mobile */

@media (max-width:768px){

    .catalogue-search-row{

        flex-direction:column;

        align-items:stretch;
    }

    .catalogue-favourites-button{

        width:100%;
    }

}

/* ==================================
   CATALOGUE PAGINATION
================================== */

.catalogue-pagination {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 48px;
}

.pagination-button {
    min-width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;

    background: #101a29;
    color: #ffffff;

    font-size: 14px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.pagination-button:hover:not(:disabled) {
    transform: translateY(-2px);

    border-color: rgba(223, 183, 49, 0.7);
    color: #dfb731;
}

.pagination-button.active {
    border-color: #dfb731;
    background: #dfb731;
    color: #07101d;
}

.pagination-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-nav {
    min-width: 105px;
}

.pagination-dots {
    min-width: 30px;

    color: #8f9aa9;

    text-align: center;

    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 600px) {

    .catalogue-pagination {
        gap: 6px;
        margin-top: 36px;
    }

    .pagination-button {
        min-width: 38px;
        height: 40px;

        padding: 0 10px;

        font-size: 12px;
    }

    .pagination-nav {
        min-width: 86px;
    }
}

/* ==================================
   PREMIUM CATALOGUE COLOR SYSTEM
================================== */

.catalogue-hero {
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(226, 185, 52, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 70%,
            rgba(92, 136, 171, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0a1826 0%,
            #10263a 52%,
            #0b1b2a 100%
        ) !important;
}

.catalogue-section {
    background:
        linear-gradient(
            135deg,
            #0b1b2b,
            #102337
        ) !important;
}

.catalogue-search input {
    background:
        linear-gradient(
            145deg,
            rgba(24, 47, 69, 0.96),
            rgba(14, 31, 48, 0.96)
        ) !important;

    border-color:
        rgba(170, 194, 214, 0.18) !important;

    color: #f5f7fa;
}

.catalogue-search input:focus {
    border-color:
        rgba(226, 185, 52, 0.65) !important;

    box-shadow:
        0 0 0 3px
        rgba(226, 185, 52, 0.07);
}

.catalogue-favourites-button {
    background:
        linear-gradient(
            145deg,
            rgba(27, 52, 74, 0.96),
            rgba(15, 34, 52, 0.96)
        ) !important;

    border-color:
        rgba(226, 185, 52, 0.38) !important;
}

.filter-button {
    background:
        linear-gradient(
            145deg,
            rgba(23, 44, 65, 0.96),
            rgba(13, 29, 46, 0.96)
        ) !important;

    border-color:
        rgba(170, 194, 214, 0.16) !important;
}

.filter-button.active {
    background:
        linear-gradient(
            135deg,
            #f0c943,
            #d9a821
        ) !important;

    color: #07131f !important;

    border-color:
        #e2b934 !important;
}

.design-card {
    background:
        linear-gradient(
            145deg,
            rgba(25, 49, 71, 0.98),
            rgba(14, 31, 48, 0.98)
        ) !important;

    border-color:
        rgba(174, 197, 215, 0.15) !important;

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, 0.18);
}

.design-card:hover {
    border-color:
        rgba(226, 185, 52, 0.50) !important;
}

.design-card-content {
    background:
        linear-gradient(
            145deg,
            rgba(24, 47, 68, 0.98),
            rgba(13, 30, 47, 0.98)
        ) !important;
}

.design-code,
.design-card-link {
    color:
        #f0c84b !important;
}

.pagination-button {
    background:
        linear-gradient(
            145deg,
            rgba(23, 45, 66, 0.96),
            rgba(13, 29, 46, 0.96)
        ) !important;

    border-color:
        rgba(170, 194, 214, 0.17) !important;
}

.pagination-button.active {
    background:
        linear-gradient(
            135deg,
            #f0c943,
            #d9a821
        ) !important;

    color: #07131f !important;
}