/* GiftDala - All Categories Page */

.gd-directory {
    --gd-primary: var(--primary-color, #95002a);
    --gd-text: #1b2433;
    --gd-muted: #79666c;
    --gd-border: #eee4e7;
    --gd-soft: #f7edf0;

    background: #fcf9fa;
    color: var(--gd-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    padding: 25px 0 65px;
}

.gd-directory *,
.gd-directory *::before,
.gd-directory *::after {
    box-sizing: border-box;
}

.gd-directory a {
    text-decoration: none;
    color: inherit;
}

.gd-directory-container {
    width: min(1260px, calc(100% - 40px));
    margin: auto;
}

.gd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    margin-bottom: 24px;
}

.gd-breadcrumb a,
.gd-eyebrow,
.gd-view-link {
    color: var(--gd-primary) !important;
}

.gd-directory-heading h1 {
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
}

.gd-directory-heading p {
    color: var(--gd-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 24px;
}

.gd-category-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4e9ec;
    padding: 0 18px;
    border-radius: 10px;
    height: 52px;
}

.gd-category-search span {
    color: var(--gd-primary);
}

.gd-category-search input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--gd-text);
    box-shadow: none;
}

.gd-occasion-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 16px 0 8px;
    scrollbar-width: thin;
}

.gd-occasion-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #f4e9ec;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    transition: .2s;
}

.gd-occasion-chip:hover {
    background: var(--gd-primary);
    color: white !important;
}

.gd-spotlight {
    margin: 38px 0 55px;
}

.gd-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.gd-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.gd-section-heading h2,
.gd-promise-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(23px, 2.5vw, 30px);
    margin: 0;
}

.gd-view-link {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gd-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gd-spotlight-card {
    display: block;
    background: white;
    border: 1px solid var(--gd-border);
    border-radius: 13px;
    overflow: hidden;
    transition: .25s;
}

.gd-spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px #00000012;
}

.gd-spotlight-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #f3e6e9;
}

.gd-spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.gd-spotlight-card:hover img {
    transform: scale(1.06);
}

.gd-image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--gd-primary);
}

.gd-image-placeholder span {
    font-size: 54px;
}

.gd-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 35%,
        rgba(0,0,0,.76)
    );
}

.gd-spotlight-overlay {
    position: absolute;
    bottom: 14px;
    left: 15px;
    right: 15px;
    color: white;
}

.gd-spotlight-overlay span {
    font-size: 10px;
    letter-spacing: 1px;
    color: #ffd7df;
}

.gd-spotlight-overlay h3 {
    font-family: "Playfair Display", serif;
    font-size: 19px;
    line-height: 1.3;
    margin: 4px 0 0;
    color: white;
}

.gd-spotlight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 700;
}

.gd-circle-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--gd-soft);
    color: var(--gd-primary);
    border-radius: 50%;
}

.gd-all-heading {
    margin-bottom: 24px;
}

.gd-total {
    font-size: 12px;
    color: var(--gd-muted);
}

.gd-departments {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gd-department {
    background: white;
    border: 1px solid var(--gd-border);
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 3px 14px #00000005;
}

.gd-department-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f1e9eb;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.gd-department-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gd-department-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--gd-primary);
    background: var(--gd-soft);
}

.gd-department-title h3 {
    font-family: "Playfair Display", serif;
    font-size: 21px;
    margin: 0 0 4px;
}

.gd-department-title p {
    font-size: 12px;
    color: var(--gd-muted);
    margin: 0;
    line-height: 1.5;
}

.gd-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.gd-subcategory {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 12px;
    padding: 12px 6px;
    transition: .2s;
}

.gd-subcategory:hover {
    background: #fcf5f7;
}

.gd-subcategory-image {
    width: 105px;
    height: 105px;
    max-width: 100%;
    border-radius: 50%;
    border: 2px solid var(--gd-border);
    overflow: hidden;
    background: var(--gd-soft);
    display: grid;
    place-items: center;
    color: var(--gd-primary);
    margin-bottom: 12px;
}

.gd-subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.gd-subcategory:hover img {
    transform: scale(1.1);
}

.gd-subcategory:hover .gd-subcategory-image {
    border-color: var(--gd-primary);
}

.gd-subcategory h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.gd-explore-label {
    font-size: 11px;
    color: var(--gd-muted);
    margin-top: 5px;
}

.gd-empty-category {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-radius: 9px;
    background: #fcf7f8;
    font-size: 13px;
}

.gd-delivery-promise {
    margin-top: 55px;
    padding: 32px;
    border: 1px solid var(--gd-border);
    border-radius: 15px;
    background: white;
}

.gd-promise-heading {
    text-align: center;
    margin-bottom: 30px;
}

.gd-promise-heading p {
    color: var(--gd-muted);
    font-size: 13px;
    margin-top: 8px;
}

.gd-promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gd-promise-item {
    display: flex;
    gap: 14px;
}

.gd-promise-item > span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--gd-soft);
    color: var(--gd-primary);
    border-radius: 10px;
}

.gd-promise-item h3 {
    font-size: 14px;
    margin: 0 0 6px;
}

.gd-promise-item p {
    font-size: 12px;
    color: var(--gd-muted);
    line-height: 1.7;
    margin: 0;
}

.gd-no-results {
    text-align: center;
    padding: 30px;
    color: var(--gd-muted);
}

.gd-directory [hidden] {
    display: none !important;
}

/* Tablet */
@media (max-width: 991px) {
    .gd-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gd-subcategory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gd-promise-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .gd-directory {
        padding-top: 18px;
    }

    .gd-directory-container {
        width: calc(100% - 28px);
    }

    .gd-directory-heading h1 {
        font-size: 26px;
    }

    .gd-section-heading h2 {
        font-size: 22px;
    }

    .gd-spotlight-grid {
        gap: 10px;
    }

    .gd-spotlight-image {
        height: 155px;
    }

    .gd-spotlight-overlay h3 {
        font-size: 16px;
    }

    .gd-spotlight-footer {
        padding: 10px;
        font-size: 11px;
    }

    .gd-department {
        padding: 15px 12px;
    }

    .gd-department-title h3 {
        font-size: 18px;
    }

    .gd-department-title p {
        font-size: 11px;
    }

    .gd-department-icon {
        width: 35px;
        height: 35px;
    }

    .gd-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gd-subcategory-image {
        width: 90px;
        height: 90px;
    }

    .gd-department-heading {
        align-items: flex-start;
    }

    .gd-delivery-promise {
        padding: 22px 16px;
    }
}
