/* ============================================
   CATTY CAFE — Product Page
   Editorial / Magazine Aesthetic
   Matches homepage: Lora serif, sky blue, slate
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
    --sky-blue: #87CEEB;
    --sky-blue-deep: #5bb8e0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

/* ---- Section Wrapper ---- */
.product-section {
    padding: 120px 20px 100px;
    background-color: #ffffff;
    min-height: 100vh;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Editorial Header ---- */
.product-header {
    position: relative;
    margin-bottom: 80px;
}

.header-bg-num {
    position: absolute;
    top: -40px;
    left: 0;
    font-family: 'Lora', serif;
    font-size: 10rem;
    color: #f1f5f9;
    user-select: none;
    z-index: 0;
    line-height: 1;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-title {
    font-family: 'Lora', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
}

.product-title em {
    font-style: italic;
    color: var(--sky-blue);
}

.product-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    margin: 0;
}

.header-rule {
    height: 1px;
    width: 100%;
    background: var(--border);
    margin-top: 24px;
}

/* ---- 4-Column Grid ---- */
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* ---- Card ---- */
.modern-card {
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1),
                box-shadow 0.4s ease,
                background 0.3s ease;
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sky-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* ---- Image Box ---- */
.card-image-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: grayscale(20%);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.15) 0%, transparent 60%);
    transition: opacity 0.4s ease;
}

.modern-card:hover .card-image-box img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.modern-card:hover .card-image-overlay {
    opacity: 0;
}

/* ---- Card Body ---- */
.card-body {
    padding: 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Meta Row: Name + Price ---- */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.name {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sky-blue-deep);
    white-space: nowrap;
    background: rgba(135, 206, 235, 0.12);
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid rgba(135, 206, 235, 0.3);
}

/* ---- Description ---- */
.description {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex-grow: 1;
}

/* ---- Card Footer ---- */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ---- See More / View Details Link ---- */
.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.see-more-btn .arrow-icon {
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
}

.see-more-btn:hover {
    color: var(--sky-blue-deep);
    border-bottom-color: var(--sky-blue-deep);
}

.see-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* ---- Add to Cart Button ---- */
.btn-action {
    padding: 10px 18px;
    border-radius: 99px;
    background: var(--text-dark);
    color: #fff;
    border: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--sky-blue);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.35);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .product-grid-4 { grid-template-columns: 1fr; }
    .product-title { font-size: 3.5rem; }
}