:root {
    /* --primary-color: #007a6f;
    --secondary-color: #d9ece8;
    --text-color: #222; */
    --background-color: #f3f0ed;
    --border-color: #897358;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #222;
}

.breadcrumb {
    padding: 10px 20px;
    font-size: 14px;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.steps-area {
    text-align: center;
    padding: 20px 0;
}

.steps-area h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

.steps-container {
    margin-block: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.active .step-icon {
    border-color: var(--border-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 111, 0.2);
}

.step.completed .step-icon {
    background-color: var(--border-color);
}

.step-icon svg {
    color: #000;
}

.step-icon.selected svg {
    color: #fff;
}

.step-label {
    font-size: 14px;
    margin-top: 8px;
    text-transform: uppercase;
}

.step.active .step-label {
    font-weight: bold;
    color: #000;
}

.step-line {
    height: 2px;
    width: 60px;
    background-color: #ccc;
    margin: 0 10px;
    margin-top: -25px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    padding: 5px 30px;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.dropdown {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.dropdown label {
    font-weight: bold;
    margin-bottom: 5px;
}

.dropdown select {
    padding: 9px 10px;
    border: 0px;
    padding-right: 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.shapes-filter {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.shape-btn {
    border: 1px solid var(--border-color);
    /* padding: 6px; */
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shape-btn.active {
    border-color: var(--border-color);
    background-color: var(--background-color);
    border-width: 2px;
}

.shape-btn img {
    width: 38px;
    height: 40px;
}


.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* padding: 30px; */
    /* gap: 20px; */
    row-gap: 20px;
    column-gap: 10px;
    padding: 10px;
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    height: 100%;
    overflow: hidden;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fAfAfA !important;
    border: 1px solid #e5e5e5 !important;
    /* border: 1px solid #f2f2f2; 
  background: #fafafa; 
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px; 
  width: 260px;  */
}

/* Hover effect for desktop */
.product-card:hover {
    /* transform: translateY(-5px); */
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px;
}

/* ---------- Breakpoints ---------- */

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .product-card {
        width: 100%;
        padding: 15px;
        border-radius: 6px;
    }
}

/* Small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .product-card {
        width: 48%;
        /* 2 cards per row */
        padding: 18px;
    }
}

/* Tablets / Small laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-card {
        width: 30%;
        /* 3 cards per row */
    }
}

/* Large screens (1025px and up) */
@media (min-width: 1025px) {
    .product-card {
        width: 330px;
        /* Fixed elegant size */
    }
}

.product-image {
    margin-inline: auto;
    max-width: 310px;
    max-height: 310px;
    min-height: 310px;
    width: 100%;
    height: 100%;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.product-image:hover {
    transform: translateY(-1px);
    /* box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px; */
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
}


.product-ribbon {
    position: absolute;
    top: 69px;
    left: -15px;
    background-color: #897358;
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-45deg);
    transform-origin: left top;
    width: 120px;
    height: 22px;
    text-align: center;
}

.product-title {
    margin-top: 15px;
    font-weight: 600;
    font-size: 16px;
}

.product-details {
    font-size: 14px;
    color: #444;
    margin: 5px 0;
}

.product-price {
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.incl-tax {
    color: var(--border-color);
    font-weight: 500;
    font-size: 13px;
}

a.view-details-button:hover {
    background-color: var(--border-color);
    color: #fff;
}

.product-footer {
    margin-top: auto;
    /* margin-top: 10px; */
}

.view-details-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--border-color);
    color: #fff;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}


.no-products {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
    text-align: center;
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px dashed #d32f2f;
    display: inline-block;
    background: #fffbea;
    border-radius: 6px;
}

.view-details-button:hover {
    background: #0056b3;
}

/* Detaild view styleing */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #222;
}

.back-link {
    padding: 20px;
    font-size: 14px;
}

.back {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.ring-detail-container {
    display: flex;
    padding: 30px;
    gap: 20px;
    /* max-width: 1400px; */
    margin: auto;
    justify-content: space-around;
}

.ring-images {
    display: grid;
    /* flex-direction: row; */
    /* flex-wrap: wrap; */
    gap: 20px;
    grid-template-columns: 1fr 1fr;

}

.variation-images{
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.main-image {
    width: 420px;
    border-radius: 10px;
    background-color: #fafafa;
}

.ring-info {
    flex: 1;
}

.ring-info h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
}

.discount,
.without-price {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin: 0;
}

.options .shape-btn {
    display: flex;
    align-items: center;
    padding: 7px 15px;
    border-color: var(--border-color);
    background-color: var(--background-color);
    border-width: 2px;
}

.selection-card .content {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0 7px 10px;
    margin-bottom: 15px;
}

.incl {
    color: var(--border-color);
}

.description {
    font-size: 16px;
    color: #555;
    margin: 0px 0 20px;
    line-height: 1.6;
}

.option-group,
.option-group-shape {
    margin-bottom: 20px;
}

.option-group label,
.option-group-shape label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111;
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn,
.metal-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background-color: #fff;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.option-btn.active,
.metal-btn.active {
    border-color: var(--border-color);
    background-color: var(--background-color);
    border-width: 2px;
}

/* .shape-btn {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
 
.shape-btn img {
    width: 24px;
    height: 24px;
} */

/* .shape-btn.active {
    border-color: #007a6f;
    box-shadow: 0 0 0 2px rgba(0, 122, 111, 0.2);
} */

.ring-size-select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.select-style-btn {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    background-color: var(--border-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.sticky-product {
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* Hover edit menu */

.step {
    position: relative;
}

.edit-menu {
    display: none;
    position: absolute;
    top: 75px;
    /* pushes it right under the icon */
    left: 50%;
    /* centers under this step */
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.step:hover .edit-menu {
    display: block;
}

.stone-type-container {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.stone-type {
    max-width: 40px;
    max-height: 40px;
    background: #ffffff;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    /* Needed for tooltip positioning */
}

.stone-type img {
    display: flex;
    object-fit: contain;
    width: 100%;
    padding: 2px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stone-type:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    /* Position below the stone-type div */
    left: 50%;
    transform: translateX(-50%);
    /* background-color: #333; */
    /* background: var(--border-color); */
    background: color-mix(in srgb, var(--border-color) 80%, transparent);
    color: #fff;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.stone-type:hover:after {
    opacity: 1;
}

img.metal-icon {
    background: #ffffff !important;
    border: 1px solid #e5e5e5;
    border-radius: 50px !important;
    position: relative;
    overflow: hidden;
}

.compare-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    z-index: 9999;
}

.compare-footer .btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    background-color: var(--border-color);
    border-color: var(--border-color);
}

.futuristic-compare table {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
}

.futuristic-compare th {
    font-weight: 600;
}

.futuristic-compare tbody tr:nth-child(even) {
    background: rgba(240, 240, 255, 0.6);
}

.futuristic-compare tbody tr:hover {
    background: rgba(200, 220, 255, 0.3);
    transition: 0.2s;
}

.futuristic-compare thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 2;
    border-bottom: 2px solid #dee2e6;
}

.futuristic-compare thead th:first-child {
    z-index: 3;
}

.futuristic-compare table {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: relative;
    /* Ensure the table is a positioning context */
}

.futuristic-compare th {
    font-weight: 600;
}

/* Make the first column sticky */
.futuristic-compare th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    /* Ensure it appears above other cells */
    background: #fff;
    /* Solid background to prevent overlap issues */
    border-right: 2px solid #ddd;
    /* Optional: visual separation */
}

/* Ensure the header stays sticky and aligns with the first column */
.futuristic-compare thead th:first-child {
    z-index: 3;
    /* Higher z-index for header to stay above body */
    background: #fff;
    /* Match the body column background */
}

/* Table body row styling */
.futuristic-compare tbody tr:nth-child(even) {
    background: rgba(240, 240, 255, 0.6);
}

.futuristic-compare tbody tr:hover {
    background: rgba(200, 220, 255, 0.3);
    transition: 0.2s;
}

/* Ensure the table is scrollable horizontally */
.futuristic-compare .table-responsive {
    overflow-x: auto;
    /* Enable horizontal scrolling */
    max-width: 100%;
    /* Prevent overflow */
}

.ring-info .option-group .option-group {
    margin-block: 1rem;
}

.field-group p {
    border: 1px solid #8c8f94;
    padding: 6px 11px;
    border-radius: 4px;
    background-color: #0002;
}