/* ========================================
   RAFATHAR ORIGINAL
   KATALOG PREMIUM
   ======================================== */

.catalog-page {
    color: #29241e;
    background: #fbf9f5;
}

/* ========================================
   BANNER KATALOG
   ======================================== */

.catalog-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 270px;
    overflow: hidden;
    isolation: isolate;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(255, 250, 242, 0.97) 0%,
        rgba(255, 250, 242, 0.91) 35%,
        rgba(255, 250, 242, 0.65) 58%,
        rgba(255, 250, 242, 0.14) 100%
    );
}

.catalog-hero-content {
    position: relative;
    z-index: 1;

    padding-top: 38px;
    padding-bottom: 38px;

    animation: catalogIntro 0.7s ease both;
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;

    color: #89612e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.catalog-eyebrow-line {
    display: inline-block;
    width: 25px;
    height: 2px;

    background: #a97835;
    border-radius: 10px;
}

.catalog-hero h1 {
    max-width: 620px;
    margin: 0 0 12px;

    color: #29231d;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.catalog-hero h1 em {
    color: #a97835;
    font-style: normal;
}

.catalog-hero-content > p {
    max-width: 500px;
    margin: 0;

    color: #62584c;
    font-size: 13px;
    line-height: 1.8;
}

.catalog-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;

    margin-top: 18px;
}

.catalog-hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #675642;
    font-size: 11px;
    font-weight: 600;
}

.catalog-hero-features i {
    color: #a97835;
    font-size: 13px;
}

/* ========================================
   KONTEN UTAMA
   ======================================== */

.catalog-main {
    padding: 45px 0 70px;
}

.catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 25px;
}

.catalog-section-label {
    display: block;
    margin-bottom: 7px;

    color: #a97835;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.catalog-heading-text h2 {
    margin: 0 0 8px;

    color: #29241e;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.catalog-heading-text p {
    margin: 0;

    color: #81776a;
    font-size: 12px;
    line-height: 1.7;
}

/* Jumlah produk */
.catalog-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.catalog-count strong {
    color: #a97835;
    font-size: 27px;
    line-height: 1;
}

.catalog-count span {
    color: #81776a;
    font-size: 10px;
}

/* ========================================
   FILTER DAN SEARCH
   ======================================== */



.catalog-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 24px;

    margin-bottom: 26px;
    padding: 18px;

    background: #ffffff;
    border: 1px solid #eee7dc;
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(48, 35, 20, 0.035);
}



.catalog-filter-area {
    flex: 0 1 auto;
    width: fit-content;
    max-width: calc(100% - 344px);
    min-width: 0;
}

.catalog-filter-heading {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 11px;

    color: #514538;
    font-size: 11px;
    font-weight: 800;
}

.catalog-filter-heading i {
    color: #a97835;
}


.catalog-filter-pills {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 7px;

    max-height: 116px;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 3px 7px 5px 2px;

    scrollbar-width: thin;
    scrollbar-color: #c9ad86 #f7f3ec;
}

.catalog-filter-pills::-webkit-scrollbar {
    width: 5px;
}

.catalog-filter-pills::-webkit-scrollbar-track {
    background: #f7f3ec;
    border-radius: 10px;
}

.catalog-filter-pills::-webkit-scrollbar-thumb {
    background: #c9ad86;
    border-radius: 10px;
}


.catalog-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 7px 12px;

    color: #6c6256;
    background: #fbf9f5;
    border: 1px solid #eae1d4;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 2px 5px rgba(48, 35, 20, 0.025);

    transition:
        color 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.catalog-pill:hover {
    color: #8e642e;
    background: #f6eee2;
    border-color: #dfc7a6;
    transform: translateY(-1px);
}

.catalog-pill.active {
    color: #ffffff;
    background: #966629;
    border-color: #966629;

    box-shadow: 0 3px 9px rgba(150, 102, 41, 0.16);
}

/* Form pencarian */

.catalog-search {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;

    flex: 0 0 320px;
    width: 320px;
    height: 43px;
    padding: 4px 5px 4px 13px;

    background: #fbfaf7;
    border: 1px solid #e9e0d3;
    border-radius: 999px;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}


.catalog-search:focus-within {
    background: #ffffff;
    border-color: #b38a53;
    box-shadow: 0 0 0 3px rgba(169, 120, 53, 0.10);
}

.catalog-search-icon {
    flex: 0 0 auto;
    color: #a18d73;
    font-size: 13px;
}

.catalog-search input {
    box-sizing: border-box;

    flex: 1;
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0;

    color: #342b22;
    background: transparent;
    border: none;
    outline: none;

    font-family: inherit;
    font-size: 11px;
}

.catalog-search input::placeholder {
    color: #a49a8d;
}

.catalog-search input:focus {
    box-shadow: none;
    outline: none;
}

.catalog-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;
    width: 24px;
    height: 24px;

    color: #887966;
    border-radius: 50%;
    text-decoration: none;

    transition: color 0.2s ease, background 0.2s ease;
}

.catalog-search-clear:hover {
    color: #5e4528;
    background: #eee5d8;
}

.catalog-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    min-height: 33px;
    padding: 8px 15px;

    color: #ffffff;
    background: #966629;
    border: none;
    border-radius: 999px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease;
}

.catalog-search button:hover {
    background: #795020;
    transform: translateY(-1px);
}

/* Filter aktif */
.catalog-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: -7px 0 21px;

    color: #81776a;
    font-size: 11px;
}

.catalog-active-tag {
    padding: 6px 11px;

    color: #795020;
    background: #f4eadb;
    border: 1px solid #ead9c0;
    border-radius: 999px;
}

.catalog-active-filters > a {
    color: #966629;
    font-weight: 700;
    text-decoration: none;
}

.catalog-active-filters > a:hover {
    text-decoration: underline;
}

/* ========================================
   GRID PRODUK
   ======================================== */

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* Kartu produk */
.catalog-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #eee8df;
    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(43, 31, 18, 0.035);

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    transition-delay: calc(
        min(var(--card-index, 0), 5) * 55ms
    );
}

.catalog-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.catalog-card:hover {
    border-color: #ddc5a2;
    box-shadow: 0 16px 35px rgba(43, 31, 18, 0.10);
    transform: translateY(-5px);
}

/* ========================================
   GAMBAR PRODUK
   ======================================== */

.catalog-card-image {
    position: relative;
    display: block;

    aspect-ratio: 1 / 1;
    overflow: hidden;

    background: #f3eee6;
    text-decoration: none;
}

.catalog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.4s ease;
}

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.07);
}

/* Overlay gambar */
.catalog-card-image-action {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 18px;

    color: #ffffff;
    background: linear-gradient(
        180deg,
        rgba(29, 22, 14, 0) 35%,
        rgba(29, 22, 14, 0.48) 100%
    );

    font-size: 11px;
    font-weight: 700;
    text-align: center;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-card-image-action i {
    margin-left: 7px;
    transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-card-image-action {
    opacity: 1;
}

.catalog-card:hover .catalog-card-image-action i {
    transform: translateX(4px);
}

/* ========================================
   DETAIL PRODUK
   ======================================== */

.catalog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;

    padding: 16px;
}

.catalog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 9px;
}

.catalog-card-category {
    max-width: 85%;
    overflow: hidden;

    color: #9a6d32;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1.5;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-card-number {
    flex: 0 0 auto;
    color: #c0b5a5;
    font-size: 10px;
    font-weight: 700;
}

.catalog-card-body h3 {
    margin: 0 0 7px;

    color: #30271f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.catalog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-card-body h3 a:hover {
    color: #a97835;
}

.catalog-card-material {
    min-height: 20px;
    margin: 0 0 13px;

    color: #82776a;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Lebar kain */
.catalog-card-width {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 14px;
    padding: 10px 11px;

    color: #766957;
    background: #faf7f1;
    border: 1px solid #f1eade;
    border-radius: 8px;

    font-size: 10px;
}

.catalog-card-width > i {
    color: #a97835;
    font-size: 13px;
}

.catalog-card-width strong {
    margin-left: auto;
    color: #45372a;
    font-weight: 800;
    white-space: nowrap;
}

/* Tombol detail */
.catalog-card-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 11px 13px;

    color: #8a602a;
    background: #ffffff;
    border: 1px solid #d8c3a5;
    border-radius: 9px;

    font-size: 11px;
    font-weight: 800;
    text-decoration: none;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.catalog-card-button i {
    transition: transform 0.25s ease;
}

.catalog-card-button:hover {
    color: #ffffff;
    background: #966629;
    border-color: #966629;
}

.catalog-card-button:hover i {
    transform: translateX(4px);
}

/* Hilangkan tombol silang bawaan browser */
.catalog-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.catalog-search input[type="search"]::-ms-clear,
.catalog-search input[type="search"]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}


/* ========================================
   PRODUK TIDAK DITEMUKAN
   ======================================== */

.catalog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    grid-column: 1 / -1;
    min-height: 280px;
    padding: 35px 20px;

    background: #ffffff;
    border: 1px dashed #d9c9b4;
    border-radius: 16px;

    text-align: center;
    animation: catalogIntro 0.45s ease both;
}

.catalog-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 17px;

    color: #a97835;
    background: #f7eee0;
    border-radius: 50%;

    font-size: 20px;
}

.catalog-empty h3 {
    margin: 0 0 9px;
    color: #30271f;
    font-size: 20px;
    font-weight: 800;
}

.catalog-empty p {
    max-width: 390px;
    margin: 0 0 20px;

    color: #82776a;
    font-size: 12px;
    line-height: 1.8;
}

.catalog-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 19px;

    color: #ffffff;
    background: #966629;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.2s ease;
}

.catalog-empty-button:hover {
    color: #ffffff;
    background: #795020;
}

/* ========================================
   ANIMASI
   ======================================== */

@keyframes catalogIntro {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hormati preferensi pengurangan animasi */
@media (prefers-reduced-motion: reduce) {
    .catalog-page *,
    .catalog-page *::before,
    .catalog-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .catalog-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   LAPTOP
   ======================================== */

@media (max-width: 1100px) {
    .catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }



.catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.catalog-filter-area {
    width: 100%;
    max-width: 100%;
}

.catalog-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: 450px;
}

}

/* ========================================
   TABLET
   ======================================== */

@media (max-width: 768px) {
    .catalog-hero {
        min-height: 230px;
        background-position: 60% center;
    }

    .catalog-hero-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .catalog-hero h1 {
        max-width: 460px;
        font-size: clamp(30px, 5vw, 39px);
    }

    .catalog-hero-content > p {
        max-width: 420px;
        font-size: 12px;
    }

    .catalog-hero-features {
        gap: 12px;
        margin-top: 14px;
    }

    .catalog-main {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .catalog-heading {
        margin-bottom: 22px;
    }

    .catalog-toolbar {
        padding: 15px;
        border-radius: 13px;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-card-body {
        padding: 12px;
    }

    .catalog-card-body h3 {
        font-size: 13px;
    }

    .catalog-card-material {
        font-size: 10px;
    }

    .catalog-card-button {
        padding: 10px;
        font-size: 10px;
    }

    

.catalog-filter-pills {
    max-height: 130px;
    gap: 7px;
}


}

/* ========================================
   HP
   ======================================== */

@media (max-width: 480px) {
    .catalog-hero {
        min-height: 215px;
    }

    .catalog-hero-content {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .catalog-eyebrow {
        margin-bottom: 9px;
        font-size: 9px;
    }

    .catalog-hero h1 {
        margin-bottom: 9px;
        font-size: 29px;
        letter-spacing: -0.8px;
    }

    .catalog-hero-content > p {
        font-size: 11px;
        line-height: 1.7;
    }

    .catalog-hero-features {
        gap: 8px 12px;
        margin-top: 12px;
    }

    .catalog-hero-features span {
        font-size: 9px;
    }

    .catalog-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .catalog-heading-text h2 {
        font-size: 25px;
    }

    .catalog-heading-text p {
        max-width: 260px;
        font-size: 11px;
    }

    .catalog-count strong {
        font-size: 22px;
    }

    .catalog-count span {
        font-size: 9px;
        white-space: nowrap;
    }

    .catalog-main {
        padding-top: 27px;
        padding-bottom: 38px;
    }

    .catalog-toolbar {
        gap: 15px;
        margin-bottom: 20px;
        padding: 12px;
    }

    .catalog-filter-heading {
        margin-bottom: 9px;
        font-size: 10px;
    }



.catalog-filter-pills {
    max-height: 120px;
    gap: 6px;
}

.catalog-pill {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 10px;
}



    .catalog-search {
        height: 41px;
        padding-left: 11px;
    }

    .catalog-search input {
        font-size: 10px;
    }

    .catalog-search button {
        min-height: 31px;
        padding: 7px 12px;
        font-size: 10px;
    }

    .catalog-product-grid {
        gap: 11px;
    }

    .catalog-card {
        border-radius: 11px;
    }

    .catalog-card-body {
        padding: 10px;
    }

    .catalog-card-meta {
        gap: 4px;
        margin-bottom: 7px;
    }

    .catalog-card-category {
        font-size: 8px;
        letter-spacing: 0.4px;
    }

    .catalog-card-number {
        font-size: 9px;
    }

    .catalog-card-body h3 {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .catalog-card-material {
        min-height: 18px;
        margin-bottom: 10px;
        font-size: 9px;
    }

    .catalog-card-width {
        gap: 5px;
        margin-bottom: 10px;
        padding: 8px 7px;
        font-size: 9px;
    }

    .catalog-card-width > i {
        font-size: 11px;
    }

    .catalog-card-button {
        padding: 9px 8px;
        font-size: 9px;
    }

    .catalog-card-image-action {
        display: none;
    }

    .catalog-card:hover {
        transform: translateY(-2px);
    }
}

/* HP SANGAT KECIL */
@media (max-width: 360px) {
    .catalog-product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .catalog-card-body {
        padding: 14px;
    }

    .catalog-card-body h3 {
        font-size: 14px;
    }

    .catalog-card-material {
        font-size: 11px;
    }

    .catalog-card-button {
        font-size: 11px;
    }
}

/*====================== 
FLOATING FACEBOOK & SHOPEE 
========================*/

.floating-social {
    position: fixed;
    right: 15px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.floating-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease;
}

.floating-social-btn:hover {
    transform: scale(1.06);
    color: #fff;
}

.floating-facebook {
    background: #1877F2;
}

.floating-shopee {
    background: #EE4D2D;
}

@media (max-width: 680px) {
    .floating-social {
        right: 10px;
        bottom: 14px;
        gap: 7px;
    }

    .floating-social-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}