/* ══ UNIFIED CARD STYLESHEET FOR GIFTERYS ════════════════════════ */

:root, .tyx-section {
    --tyx-bg:     #f6f4f0;
    --tyx-ink:    #111110;
    --tyx-card:   #ffffff;
    --tyx-gold:   #c9a84c;
    --tyx-gold-a: rgba(201,168,76,0.12);
    --tyx-gold-b: rgba(201,168,76,0.30);
    --tyx-muted:  #88807a;
    --tyx-border: rgba(0,0,0,0.07);
    --tyx-r:      14px;
    --tyx-sh:     0 2px 18px rgba(0,0,0,0.06);
    --tyx-sh-h:   0 20px 55px rgba(0,0,0,0.14);
}

/* Ticker styles */
.tyx-ticker {
    background: var(--tyx-ink);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    margin-bottom: 52px;
}
.tyx-ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    animation: tyxRoll 28s linear infinite;
}
@keyframes tyxRoll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.tyx-ticker__track span {
    font-family: "Public Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.tyx-ticker__gem { color: var(--tyx-gold) !important; font-size: 8px !important; }

/* Grid and Layouts */
.tyx-wrap { max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.tyx-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.tyx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Public Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--tyx-gold);
    margin-bottom: 10px;
}
.tyx-eyebrow__pulse {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--tyx-gold);
    position: relative;
}
.tyx-eyebrow__pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--tyx-gold);
    animation: tyxPulse 2s ease-out infinite;
}
@keyframes tyxPulse {
    0%   { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}
.tyx-title {
    font-size: clamp(2.2rem, 3.2vw, 3.4rem);
    font-weight: 400;
    color: var(--tyx-ink);
    line-height: 1;
    margin: 0;
    display: inline-block;
    position: relative;
}
.tyx-title em { font-style: italic; color: var(--tyx-gold); }
.tyx-title__wave { display: block; width: 100%; height: 13px; margin-top: 6px; }
.tyx-header__right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
.tyx-header__right p {
    font-family: "Public Sans", sans-serif;
    font-size: 0.82rem;
    color: var(--tyx-muted);
    margin: 0;
}
.tyx-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--tyx-ink);
    border-radius: 30px;
    font-family: "Public Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tyx-ink);
    text-decoration: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.25s;
}
.tyx-viewall-btn svg { transition: transform 0.3s; }
.tyx-viewall-btn:hover {
    background: var(--tyx-gold);
    border-color: var(--tyx-gold);
    color: #fff;
    transform: translateY(-2px);
}
.tyx-viewall-btn:hover svg { transform: translateX(4px); }

/* Grid responsive */
.tyx-desktop-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.tyx-mobile-grid { display: none; }

/* ══ CARD STYLING ════════════════════════════════════════════ */
.tyx-card {
    position: relative;
    background: var(--tyx-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    cursor: pointer;
    opacity: 1; /* override fade-in animation values where needed */
    transition:
        opacity 0.6s cubic-bezier(0.22,1,0.36,1),
        transform 0.6s cubic-bezier(0.22,1,0.36,1),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tyx-card:hover {
    box-shadow: 0 20px 45px rgba(26, 18, 8, 0.12);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-9px) scale(1.02) !important;
}

/* Glassmorphic Price Badge */
.tyx-card__price-badge {
    position: absolute;
    top: 12px; left: 12px;
    font-family: "Public Sans", sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(17, 17, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 11px;
    z-index: 4;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.02em;
}

/* Image Wrap */
.tyx-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f3efe6;
    width: 100%;
}
.tyx-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}
.tyx-card:hover .tyx-card__img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

/* View Hover Overlay */
.tyx-card__reveal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(26, 18, 8, 0.15);
    backdrop-filter: blur(2px);
    transition: opacity 0.4s ease;
    z-index: 2;
}
.tyx-card:hover .tyx-card__reveal { opacity: 1; }
.tyx-card__reveal-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: rgba(255,255,255,0.95);
    color: var(--tyx-ink);
    font-family: "Public Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 30px;
    transform: scale(0.85) translateY(8px);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.tyx-card:hover .tyx-card__reveal-pill { transform: scale(1) translateY(0); }

/* Brand name tag */
.tyx-card__brand {
    position: absolute;
    bottom: 12px; left: 12px;
    font-family: "Public Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(17,17,16,0.5);
    border-radius: 4px;
    padding: 3px 8px;
    backdrop-filter: blur(6px);
    z-index: 3;
}

/* Wishlist heart */
.tyx-card__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88807a;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.tyx-card__wishlist:hover {
    color: #ef4444;
    background: #fff;
    transform: scale(1.08);
}
.tyx-card__wishlist.active {
    color: #ef4444 !important;
}
.tyx-card__wishlist .icon-filled { display: none; }
.tyx-card__wishlist.active .icon-empty { display: none; }
.tyx-card__wishlist.active .icon-filled { display: inline-block; color: #ef4444; }

/* Info area */
.tyx-card__info {
    padding: 16px;
    background: var(--tyx-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
    flex-grow: 1;
    justify-content: space-between;
}
.tyx-card__name-link {
    text-decoration: none;
    display: block;
}
.tyx-card__name {
    font-family: "Public Sans", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--tyx-ink);
    margin: 0 0 4px;
    line-height: 1.45;
    height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.tyx-card:hover .tyx-card__name { color: var(--tyx-gold); }

/* Price element inside info block */
.tyx-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: "Public Sans", sans-serif;
    margin-bottom: 2px;
}
.tyx-card__price-sale {
    font-size: 16px;
    font-weight: 700;
    color: var(--tyx-ink);
}
.tyx-card__price-mrp {
    font-size: 12.5px;
    color: var(--tyx-muted);
    text-decoration: line-through;
}

/* Enquire Now button */
.tyx-card__enq {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid var(--tyx-gold);
    border-radius: 24px;
    font-family: "Public Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tyx-gold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    text-decoration: none !important;
}
.tyx-card__enq svg {
    transition: transform 0.3s ease;
    stroke: var(--tyx-gold);
    stroke-width: 1.5px;
    flex-shrink: 0;
}
.tyx-card__enq:hover {
    background: var(--tyx-gold);
    color: #fff;
    border-color: var(--tyx-gold);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
    transform: translateY(-1.5px);
}
.tyx-card__enq:hover svg {
    stroke: #fff;
    transform: translateX(4px);
}

/* Buy actions */
.tyx-card__buy-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.tyx-card__add-to-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    background: transparent !important;
    border: 1px solid var(--tyx-gold) !important;
    border-radius: 24px;
    font-family: "Public Sans", sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--tyx-gold) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}
.tyx-card__add-to-cart:hover {
    background: var(--tyx-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    transform: translateY(-1.5px);
}
.tyx-card__buy-now {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    background: #5a5a5a !important;
    border: 1px solid #5a5a5a !important;
    border-radius: 24px;
    font-family: "Public Sans", sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}
.tyx-card__buy-now:hover {
    background: var(--tyx-gold) !important;
    border-color: var(--tyx-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    transform: translateY(-1.5px);
}

/* Hide unused variables */
.tyx-c, .tyx-card__bar, .tyx-card__num {
    display: none !important;
}

/* ══ MOBILE SCROLL ═══════════════════════════════════════════ */
.tyx-mobile-scroll-wrap { position: relative; }
.tyx-mobile-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}
.tyx-mobile-track::-webkit-scrollbar { display: none; }
.tyx-mobile-track .tyx-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    transition-delay: 0s !important;
}
.tyx-mob-bar {
    height: 1.5px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}
.tyx-mob-fill {
    height: 100%;
    width: 16.66%;
    background: var(--tyx-gold);
    border-radius: 2px;
    transition: width 0.15s ease;
}
.tyx-mob-hint {
    font-family: "Public Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tyx-muted);
    text-align: center;
    margin: 10px 0 0;
}

/* Footer strip */
.tyx-footer-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
}
.tyx-footer-line { flex: 1; height: 1px; background: rgba(0,0,0,0.1); }
.tyx-footer-dots { display: flex; gap: 7px; align-items: center; }
.tyx-dot {
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.3s;
}
.tyx-dot--active { background: var(--tyx-gold); transform: scale(1.5); }

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
    .tyx-desktop-grid { display: none; }
    .tyx-mobile-grid  { display: block; }
    .tyx-mobile-track .tyx-card { flex: 0 0 220px; }
}
@media (max-width: 768px) {
    .tyx-wrap { padding: 0 20px; }
    .tyx-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .tyx-header__right { text-align: left; align-items: flex-start; }
    .tyx-ticker { margin-bottom: 36px; }
    .tyx-mobile-track .tyx-card { flex: 0 0 195px; }
}
@media (max-width: 540px) {
    .tyx-wrap { padding: 0 16px; }
    .tyx-title { font-size: 2rem; }
    .tyx-section { padding-bottom: 44px; }
    .tyx-mobile-track .tyx-card { flex: 0 0 172px; }
    .tyx-ticker { margin-bottom: 28px; }
}
@media (max-width: 380px) {
    .tyx-mobile-track .tyx-card { flex: 0 0 155px; }
}

/* List View support for unified cards */
.product-list-section.gf-list-mode .tyx-card {
    flex-direction: row !important;
}
.product-list-section.gf-list-mode .tyx-card__img-wrap {
    aspect-ratio: auto !important;
    width: 240px !important;
    min-height: 200px;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
}
.product-list-section.gf-list-mode .tyx-card__info {
    border-top: none !important;
    border-left: 1px solid #f0ece4;
    padding: 1.2rem 1.5rem;
    justify-content: center;
}
@media (max-width: 600px) {
    .product-list-section.gf-list-mode .tyx-card { flex-direction: column !important; }
    .product-list-section.gf-list-mode .tyx-card__img-wrap { width: 100% !important; aspect-ratio: 1 !important; min-height: auto; border-radius: 12px 12px 0 0; }
    .product-list-section.gf-list-mode .tyx-card__info { border-left: none; border-top: 1px solid #f0ece4; }
}

