:root {
    --primary-accent: #4a90e2;
    --primary-accent-hover: #357ABD;
    --text-primary: #222;
    --text-muted: #666;
    --bg-card: #1b1c1d;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-soft: rgba(0, 0, 0, 0.12);
    --tag-glossy-bg: #e0f0ff;
    --tag-glossy-color: #2a7fff;
    --tag-glossy-bg-selected: #2a7fff;
    --tag-glossy-color-selected: #fff;
    --tag-matt-bg: #f0e5ff;
    --tag-matt-color: #814fff;
    --tag-matt-bg-selected: #814fff;
    --tag-matt-color-selected: #fff;
}



.card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 20px var(--shadow-soft);
    width: 320px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wrapper {
   
    position: relative;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.wrapper::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150%;
    background: linear-gradient(#508861, #aaddb4);
    animation: animate 3s linear infinite;
}

.wrapper::after {
    content: "";
    position: absolute;
    /* z-index: -1; */
    inset: 4px;
    background: #1e1f20;
    border-radius: 16px;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Image container with relative positioning for overlays and zoom */
.image-container {
    position: relative;
    z-index: 9;
    width: 100%;
    padding-top: 100%;
    /* square ratio */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-light);
    /* cursor: zoom-in; */
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background-color:#ffffff;
}

.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255 255 255 / 0.8);
    border-radius: 50%;
    padding: 6px;
    font-size: 20px;
    color: var(--primary-accent);
    opacity: 0.85;
    transition: opacity 0.3s ease;
    user-select: none;
}

.image-container:hover .zoom-icon {
    opacity: 1;
}

.see-in-room-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-accent);
    color: white;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 2px 6px var(--shadow-light);
    opacity: 0.9;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.see-in-room-btn:hover {
    opacity: 1;
    box-shadow: 0 4px 14px var(--shadow-soft);
}

/* Text content */
.product-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-info {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.product-info+.product-info {
    margin-top: 4px;
}

/* Finish tags pills */
.tags {
    /* display: flex; */
    /* gap: 12px; */
    margin-top: 8px;
    position: relative;
    z-index: 5;
}

.tag {
    cursor: pointer;
    margin: 10px 0px;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 9999px;
    font-weight: 500;
    user-select: none;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 5;
}

.tag.glossy {
    border: 2.5px solid var(--tag-glossy-color);
    color: var(--tag-glossy-color);
    background: transparent;
}

.tag.glossy.selected {
    background: var(--tag-glossy-bg-selected);
    color: var(--tag-glossy-color-selected);
    box-shadow: 0 0 8px var(--tag-glossy-color-selected);
    border-color: transparent;
}

.tag.matt {
    border: 2.5px solid var(--tag-matt-color);
    color: var(--tag-matt-color);
    background: transparent;
}

.tag.matt.selected {
    background: var(--tag-matt-bg-selected);
    color: var(--tag-matt-color-selected);
    box-shadow: 0 0 8px var(--tag-matt-color-selected);
    border-color: transparent;
}

/* Tooltip style for finish tags */
.tag[data-tooltip] {
    position: relative;
}

.tag[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-primary);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

.tag[data-tooltip]::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Icons container */
.icons-row {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin: 10px 0 8px;
}

/* Favorite & Add-to-wishlist icons */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-accent);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    font-size: 22px;
    cursor: pointer;
    overflow: visible;
    user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.icon-btn:hover {
    background: var(--primary-accent);
    color: white;
}

.icon-btn.favorited {
    background: #e53e3e;
    border-color: #e53e3e;
    color: white;
    animation: pulse 0.7s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* Button */
.btn {
	border: none;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	cursor: pointer;
	padding: 4px 10px;
	display: inline-block;
	/* margin: 15px 30px; */
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	outline: none;
	position: relative;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.btn:after {
	content: '';
	position: absolute;
	z-index: -1;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

/* Button 1 */
.btn-1 {
	 user-select: none;
  -moz-user-select: none;
  background:#ffffff none repeat scroll 0 0;
  border: none;
  color: #55997d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: var(--tg-fw-semi-bold);
  font-family: var(--tg-heading-font-family);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
  padding: 14px 26px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-transition: all 0.3s ease-out 0s;
  -moz-transition: all 0.3s ease-out 0s;
  -ms-transition: all 0.3s ease-out 0s;
  -o-transition: all 0.3s ease-out 0s;
  transition: all 0.3s ease-out 0s;
  vertical-align: middle;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  -o-border-radius: 40px;
  -ms-border-radius: 40px;
  border-radius: 40px;
  white-space: nowrap;
  overflow: hidden;
}
/* .btn-1c:after {
	width: 0%;
	height: 100%;
	top: 0;
	left: 0;
	background: #eefff9;
} */

.btn-1c:hover,
.btn-1c:active {
	color: #eefff9;
    border:2px solid #eefff9;
    background-color: #1e1f20;
    /* border-radius: 10px;  */
}

/* .btn-1c:hover:after,
.btn-1c:active:after {
	width: 100%;
} */

/* Tooltip for icons */
.icon-btn[data-tooltip] {
    position: relative;
}

.icon-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-primary);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

.icon-btn[data-tooltip]::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* More product detail button - ghost style */
.more-detail-btn {
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary-accent);
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    align-self: flex-start;
    padding: 0;
    display: inline-flex;
    gap: 6px;
    position: relative;
    transition: color 0.3s ease;
}

.more-detail-btn:hover {
    color: var(--primary-accent-hover);
}

.more-detail-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    will-change: transform;
}

.more-detail-btn:hover .arrow {
    transform: translateX(6px);
}

/* Modal side panel */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-bg.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -8px 0 24px var(--shadow-soft);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 14px 0 0 14px;
    z-index: 1100;
}

.modal-panel.active {
    transform: translateX(0);
}

.modal-close-btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--primary-accent);
}

.modal-content h2 {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-content p {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Quick compare checkbox */
.compare-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
}

.compare-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

label {
    cursor: pointer;
}

/* Tagline */
.tagline {
    font-style: italic;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--primary-accent);
}