:root {
    --heading-font: 'Marcellus', serif;
    --body-font: 'EB Garamond', serif;
    --ui-font: 'Montserrat', sans-serif;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.65;
    font-size: 1.1rem;
    color: #333;
}

/* Headings - Luxury feel */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600; /* Cinzel works well in mid-weights */
    line-height: 1.2;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h2, h3 {
    font-family: var(--secondary-heading-font);

}

/* Variable font controls */
h1 {
    font-optical-sizing: auto; /* Great for Playfair Display */
    font-variation-settings: "opsz" 32; /* Adjust optical size if needed */
}

/* Italic examples */
em, .italic {
    font-style: italic;
}

/* Optional: Italic for emphasis (EB Garamond shines here) */
em, .highlight {
    font-style: italic;
    color: #5c4033; /* Warm brownish-gold tone for jewelry feel */
}

/* Fine control with font-variation-settings (advanced) */
.luxury-light {
    font-variation-settings: "wght" 300;
}

.luxury-bold {
    font-variation-settings: "wght" 700;
}

p {
    font-family: var(--body-font);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Product Card Title */
.card-title,
.product-title {
    font-family: var(--heading-font);
    font-weight: 600; /* or 700 if you want it bolder */
    font-size: 1.08rem; /* tweak as needed for your layout */
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
.card-title {
    position: relative;
    font-family:var(--heading-font);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing:0.3px;
    line-height:1.3;
    z-index: 5;
    padding-top: 4px;
}
/* Product Description */
.product-description,
p {
    font-family: var(--body-font);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Price - Clean & Bold */
.price {
    font-family: var(--ui-font);
    font-weight: 400;
    font-size: 1.15rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Product Images */
.card-image {
    width: 100%;
    max-height: 340px; /* Slightly increased for better visibility */
    object-fit: contain; /* Keeps proportions, no stretching */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}
/* Buttons */
.btn, .view-details {
    font-family: var(--ui-font);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Optional accent color for jewelry feel */
.accent {
    color: #9c6644; /* Warm gold/bronze tone */
}
.custom-width-card {
    max-width: 300px;
    margin: auto;
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-title {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}
/* Improved Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 85%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    object-fit: contain; /* This is key */
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

    .close-modal:hover {
        color: #ddd;
    }
.product-card {
    transition: all 0.3s ease;
    transform: translateZ(0);
    cursor: pointer;
    overflow: hidden; /* Prevents content from spilling out */
    height: 320px;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

    .product-card:hover {
        transform: scale(1.04) translateZ(0); /* ~4% enlargement on the whole card */
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
    }

        /* Hover effect handled on the whole card now */
        .product-card:hover .card-image {
            transform: none; /* No extra zoom on image */
        }
.product-card-body {
    padding: 10px 10px; /* or whatever feels right */
}
.card-body {
    padding-top: 14px; /* Give a little more space from the image */
    position: relative;
    z-index: 2;
}
.card-title {
    margin-top: 0;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}