/* ========================================
   CUSTOM SHOP PAGE STYLES
   ======================================== */

.custom-shop-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #FFFFFF;
}

/* Breadcrumbs */
.custom-breadcrumbs {
    padding: 30px 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
    border-bottom: 1px solid #e5e5e5;
}

.custom-breadcrumbs span.active {
    font-weight: 600;
    color: #000;
}

/* Filter Bar */
.custom-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 0px;
    /* Aligned with grid gap */
    font-size: 14px;
    color: #333;
    letter-spacing: 0.02em;
}

.custom-filter-left {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.custom-filter-left svg {
    margin-left: 6px;
    width: 12px;
    height: 12px;
    stroke-width: 1.5;
}

.custom-sort {
    cursor: pointer;
    text-transform: capitalize;
    position: relative;
    display: flex;
    align-items: center;
}

/* Dropdown Styles */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    padding: 8px 0;
}

.custom-dropdown.custom-dropdown-right {
    left: auto;
    right: 0;
}

.custom-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.custom-dropdown-title {
    padding: 8px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}

.custom-dropdown-item {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.custom-dropdown-item:hover {
    background: #f7f7f7;
    color: #000;
}

.custom-dropdown-item.active {
    font-weight: 700;
    color: #000;
}

.custom-dropdown-item.active::before {
    content: '✓ ';
    font-size: 11px;
}

.custom-dropdown-empty {
    color: #999;
    font-style: italic;
    cursor: default;
}

/* Product Grid */
.custom-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 20px;
    /* Increased vertical gap for high-end look */
    margin-top: 20px;
    margin-bottom: 100px;
}

.custom-shop-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.custom-shop-image {
    width: 100%;
    aspect-ratio: 1 / 1.35;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #f7f7f7;
    position: relative;
}

.custom-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.custom-shop-image .primary-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.custom-shop-image .secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.custom-shop-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    background: #fff;
    text-align: center;
    z-index: 3;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.custom-shop-item:hover .secondary-img {
    opacity: 1;
}

.custom-shop-item:hover .primary-img {
    opacity: 0;
}

.custom-shop-item:hover .custom-shop-info {
    opacity: 1;
    transform: translateY(0);
}

.custom-shop-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: #111 !important;
    margin: 0 0 4px 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.custom-shop-price {
    font-family: Inter, -apple-system, sans-serif;
    font-size: 13px;
    color: #333 !important;
    font-weight: 600;
}

/* Pagination Styling */
.pagination {
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
    font-size: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 15px;
    }
}

@media (max-width: 480px) {
    .custom-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }

    .custom-shop-name {
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-size: 16px;
        color: #fff;
        margin-bottom: 8px;
    }

    .custom-shop-price {
        font-size: 14px;
        color: #fff;
    }
}