/* Catalogue Page */
.icon-catalogue-page {
    min-height: 100vh;
    background: #1a1a1a url('../images/breadcrumb-bg/Minimalist-luxury-salon-with-warm-tones.png') no-repeat center center / cover;
    background-attachment: fixed;
    padding: 80px 20px;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    align-items: center;
}

/* Catalogue Paper Look */
.catalogue-paper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 10px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 1s ease-out;
}

/* Inner catalogue border */
.catalogue-paper::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px solid #b48a3c;
    border-radius: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Subtle background pattern */
.catalogue-paper::after {
    content: "EST. 1994";
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-size: 12px;
    color: #b48a3c;
    letter-spacing: 5px;
    pointer-events: none;
}

/* Header */
.catalogue-header {
    text-align: center;
    margin-bottom: 50px;
    /* before 50px නම් reduce */
}

.catalogue-logo {
    width: 220px;
    max-width: 42%;
    height: auto;
    margin-bottom: 20px;
}

.catalogue-header h1 {
    margin: 0;
    color: #111111;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.catalogue-header p {
    max-width: 600px;
    margin: 15px auto 0;
    /* title සහ subtitle අතර space */
    color: #444;
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
}

.catalogue-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #b48a3c;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}



/* Options Grid */
.catalogue-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Card */
.catalogue-card {
    min-height: 330px;
    padding: 38px 34px;
    background: #ffffff;
    border: 1px solid #e8dfd2;
    border-radius: 20px;
    text-decoration: none;
    color: #111111;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.catalogue-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #b48a3c;
    box-shadow: 0 30px 60px rgba(180, 138, 60, 0.2);
}

/* Dark Card */
.dark-card {
    background: linear-gradient(135deg, #111111 0%, #2a2118 100%);
    color: #ffffff;
    border-color: #2c2418;
}

.dark-card:hover {
    border-color: #b48a3c;
}

/* Card Header */
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f7efe4;
    color: #b48a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dark-card .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #d6a94f;
}

.card-tag {
    color: #b48a3c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Card Text */
.catalogue-card h2 {
    margin: 0 0 16px;
    font-size: 34px;
    font-weight: 700;
}

.catalogue-card p {
    margin: 0 0 32px;
    color: inherit;
    opacity: 0.78;
    font-size: 15px;
    line-height: 1.8;
}

/* Card Button */
.card-button {
    display: inline-block;
    width: fit-content;
    padding: 13px 28px;
    background: #25D366;
    color: #ffffff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalogue-card:hover .card-button {
    background: #111;
    color: #fff;
}

/* Help Section */
.catalogue-help {
    margin-top: 46px;
    padding: 34px 28px;
    background: #eafff1;
    border: 1px solid #c9f2d8;
    border-radius: 18px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.catalogue-help h3 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
}

.catalogue-help p {
    margin: 0 0 22px;
    color: #555555;
    font-size: 15px;
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-block;
    padding: 13px 30px;
    background: #25D366;
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #1fb85a;
    transform: translateY(-2px);
}

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.back-to-shop::before {
    content: "" !important;
    display: none !important;
}

.back-to-shop::after {
    content: "" !important;
    display: none !important;
}

.back-to-shop:hover {
    color: #b48a3c;
    transform: translateX(-4px);
}


/* Tablet */
@media (max-width: 992px) {
    .catalogue-paper {
        padding: 45px 32px;
    }

    .catalogue-header h1 {
        font-size: 40px;
    }

    .catalogue-card h2 {
        font-size: 30px;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .icon-catalogue-page {
        padding: 35px 14px;
    }

    .catalogue-paper {
        padding: 36px 22px;
        border-radius: 18px;
    }

    .catalogue-paper::before {
        inset: 10px;
        border-radius: 12px;
    }

    .catalogue-header {
        margin-bottom: 34px;
    }

    .catalogue-header h1 {
        font-size: 30px;
    }

    .catalogue-header p {
        font-size: 14px;
    }

    .catalogue-options {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .catalogue-card {
        min-height: auto;
        padding: 30px 24px;
    }

    .catalogue-card h2 {
        font-size: 28px;
    }

    .catalogue-card p {
        font-size: 14px;
    }

    .catalogue-help {
        padding: 28px 20px;
    }

    .catalogue-help h3 {
        font-size: 21px;
    }
}

/* Customize Category Page */
.customize-category-page {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../images/breadcrumb-bg/Minimalist-office-stationery-background-design.png') no-repeat center center / cover;
    background-attachment: fixed;
    padding: 60px 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

.pre-order-category-page {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../images/breadcrumb-bg/Minimalist-salon-interior-branding-backdrop.png') no-repeat center center / cover;
    background-attachment: fixed;
    padding: 60px 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Compact header for inner pages */
.compact-header {
    margin-bottom: 38px;
}

.catalogue-logo {
    width: 150px;
    max-width: 42%;
    height: auto;
    margin-bottom: 12px;
}

.compact-header h1 {
    margin: 0;
    color: #111111;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.05;
}

.compact-header p {
    max-width: 520px;
    margin: 12px auto 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.5;
}

/* Category Grid */
.customize-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Category Card */
.category-card {
    min-height: 190px;
    padding: 28px 22px;
    background: #ffffff;
    border: 1px solid #e8dfd2;
    border-radius: 18px;
    text-decoration: none;
    color: #111111;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.catalogue-category-card {
    min-height: 100%;
    padding: 0;
    justify-content: flex-start;
    overflow: hidden;
}

button.category-card {
    width: 100%;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-7px);
    border-color: #b48a3c;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.13);
}

.category-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f7efe4;
    color: #b48a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #111111;
}

.category-card span {
    color: #25D366;
    font-size: 14px;
    font-weight: 600;
}

.category-card-image,
.category-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.category-card-image {
    display: block;
    object-fit: cover;
    background: #f7efe4;
}

.category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8efe2 0%, #ffffff 100%);
}

.category-image-fallback {
    display: none;
}

.category-image-placeholder img {
    width: 150px;
    max-width: 48%;
    height: auto;
}

.category-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 22px 26px;
}

.category-card-body p {
    flex: 1;
    margin: 0 0 18px;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}

.catalogue-empty-state {
    grid-column: 1 / -1;
    padding: 38px 28px;
    background: #ffffff;
    border: 1px solid #e8dfd2;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    z-index: 1;
}

.catalogue-empty-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 12px;
    background: #f7efe4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.catalogue-empty-mark img {
    width: 100%;
    height: auto;
}

.catalogue-empty-state h2 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
}

.catalogue-empty-state p {
    max-width: 480px;
    margin: 0 auto 22px;
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}

.preorder-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}

.imgcontainer {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8dfd2;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.imgcontainer:hover {
    transform: translateY(-6px);
    border-color: #b48a3c;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.13);
}

.imgcontainer img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background: rgba(0, 0, 0, 0.82);
}

.image-preview-modal.is-open {
    display: flex;
}

.image-preview-modal img {
    max-width: min(100%, 980px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 22px;
    padding: 10px 18px;
    border: 0;
    border-radius: 24px;
    background: #25D366;
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.item-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.item-card-main-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.category-card-image-item {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
    padding: 0;
    border-bottom: 1px solid #eadfce;
}

.category-image-placeholder {
    width: 100%;
    height: 300px;
    background: #f7efe4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eadfce;
}

.category-image-placeholder img {
    width: 130px;
    max-width: 60%;
    height: auto;
    opacity: 0.85;
}

.category-card-body {
    padding: 28px 28px 10px;
    text-align: left;
}

.category-card-body h3 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

.category-card-body p {
    margin: 0 0 18px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.item-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 28px 28px;
}

.view-details-btn-item,
.item-whatsapp-btn-item {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.view-details-btn-item {
    background: #111111;
    color: #ffffff;
}

.view-details-btn-item:hover {
    background: #b48a3c;
    color: #ffffff;
}

.item-whatsapp-btn-item {
    background: #25D366;
    color: #ffffff;
}

.item-whatsapp-btn-item:hover {
    background: #1fb85a;
    color: #ffffff;
}

.catalogue-item-view-page {
    min-height: 100vh;
    background: #f3f0ec;
    padding: 60px 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

.customize-item-view-page {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../images/breadcrumb-bg/Minimalist-office-stationery-background-design.png') no-repeat center center / cover;
    background-attachment: fixed;
    padding: 60px 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

.pre-order-item-view-page {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../images/breadcrumb-bg/Minimalist-salon-interior-branding-backdrop.png') no-repeat center center / cover;
    background-attachment: fixed;
    padding: 60px 20px;
    font-family: 'Poppins', Arial, sans-serif;
}

.catalogue-detail-paper {
    max-width: 1150px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #fbf7f2 100%);
    border: 1px solid #e6ded4;
    border-radius: 22px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.13);
    padding: 48px;
}

.detail-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eadfce;
    padding-bottom: 22px;
    margin-bottom: 28px;
}

.detail-logo {
    width: 150px;
    height: auto;
}

.detail-page-label {
    color: #b48a3c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-title-area {
    margin-bottom: 30px;
}

.detail-title-area span {
    color: #b48a3c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.detail-title-area h1 {
    margin: 8px 0 8px;
    font-size: 42px;
    line-height: 1.15;
    color: #111;
    text-transform: uppercase;
}

.detail-title-area p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.detail-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.detail-image-box {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    overflow: hidden;
    min-height: 380px;
}

.detail-box-title {
    padding: 14px 18px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-image-box img {
    width: 100%;
    height: 340px;
    object-fit: contain;
    padding: 22px;
    background: #fff;
}

.detail-placeholder {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b48a3c;
    background: #f7efe4;
    font-weight: 700;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.detail-section {
    background: #fff;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 28px;
}

.detail-section h2 {
    margin: 0 0 16px;
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

.detail-section p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: #555;
    border-bottom: 1px solid #f0e8dd;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: 800;
}

.spec-table {
    border: 1px solid #f0e8dd;
    border-radius: 12px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid #f0e8dd;
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-row strong,
.spec-row span {
    padding: 14px 16px;
    color: #555;
}

.spec-row strong {
    background: #fbf7f2;
    color: #111;
}

.color-custom-section {
    margin-top: 30px;
    padding: 30px;
    background: #fffaf1;
    border: 1px solid #e6d2a2;
    border-radius: 18px;
}

.color-label {
    color: #b48a3c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.color-custom-section h2 {
    margin: 8px 0 12px;
    color: #111;
    font-size: 26px;
}

.color-custom-section p {
    color: #555;
    line-height: 1.7;
}

.color-note {
    font-weight: 600;
}

.sample-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.sample-swatches span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d8c7aa;
}

.color-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-chart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 30px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.detail-cta-strip {
    margin-top: 34px;
    padding: 28px;
    background: #eafff1;
    border: 1px solid #c9f2d8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.detail-cta-strip h3 {
    margin: 0 0 6px;
    color: #111;
    font-size: 22px;
}

.detail-cta-strip p {
    margin: 0;
    color: #555;
}

.product-title{
    margin: 0;
}

@media (max-width: 768px) {
    .catalogue-item-view-page {
        padding: 35px 14px;
    }

    .catalogue-detail-paper {
        padding: 26px 18px;
    }

    .detail-top-header {
        display: block;
    }

    .detail-logo {
        width: 130px;
        margin-bottom: 14px;
    }

    .detail-title-area h1 {
        font-size: 28px;
    }

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

    .detail-image-box {
        min-height: auto;
    }

    .detail-image-box img,
    .detail-placeholder {
        height: 280px;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .detail-cta-strip {
        display: block;
        text-align: center;
    }

    .detail-cta-strip .whatsapp-button {
        margin-top: 18px;
    }

    /* Mobile background optimization */
    .icon-catalogue-page,
    .customize-category-page,
    .pre-order-category-page,
    .customize-item-view-page,
    .pre-order-item-view-page {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
}

@media (max-width: 768px) {

    .category-card-image-item,
    .category-image-placeholder {
        height: 250px;
    }

    .category-card-body {
        padding: 24px 22px 8px;
    }

    .item-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0 22px 24px;
    }

    .view-details-btn-item,
    .item-whatsapp-btn-item {
        width: 100%;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 992px) {

    .customize-category-grid,
    .preorder-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compact-header h1 {
        font-size: 38px;
    }
}

/* Mobile tweaks for category and preorder images */
@media (max-width: 768px) {
    .customize-category-page {
        padding: 35px 14px;
        background-attachment: scroll !important;
    }

    .customize-category-grid,
    .preorder-image-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-card {
        min-height: auto;
        padding: 26px 22px;
    }

    .catalogue-category-card {
        padding: 0;
    }

    .compact-header h1 {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .compact-header p {
        font-size: 14px;
    }

    .catalogue-logo {
        width: 135px;
    }
}