/* =========================================
   Premium Product Card Grid
   ========================================= */

/* Page Title */
.inProductList .main_title h2,
.inProduct .main_title h2 {
	font-size: 2.2rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.03em;
	position: relative;
	padding-bottom: 1rem;
	margin-bottom: 2rem;
}

.inProductList .main_title h2::after,
.inProduct .main_title h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: linear-gradient(135deg, #3b82f6, #06b6d4);
	border-radius: 4px;
}

/* Product Card */
.product__col {
	animation: productFadeUp 0.5s ease both;
}

.product__col:nth-child(2) { animation-delay: 0.08s; }
.product__col:nth-child(3) { animation-delay: 0.16s; }
.product__col:nth-child(4) { animation-delay: 0.24s; }

@keyframes productFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

.product__item {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	border: 1px solid #e2e8f0;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.product__item:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 40px -8px rgba(59, 130, 246, 0.16);
	border-color: #bfdbfe;
}

.product__photo {
	overflow: hidden;
	aspect-ratio: 1/1;
	background: #f8fafc;
	margin: 0;
	position: relative;
}

.product__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.product__item:hover .product__photo img {
	transform: scale(1.06);
}

.product__photo .poa {
	z-index: 2;
}

.product__content {
	padding: 1.25rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.product__title {
	margin-bottom: 0.6rem;
}

.product__title h3 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0;
}

.product__title h3 a {
	color: #0f172a;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s;
}

.product__item:hover .product__title h3 a {
	color: #2563eb;
}

.product__price {
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.product__price .price__new {
	font-size: 1.1rem;
	font-weight: 700;
	color: #ef4444;
}

.product__price .price__old {
	font-size: 0.85rem;
	color: #94a3b8;
	text-decoration: line-through;
}

.product__price .price__discount {
	background: #fef2f2;
	color: #ef4444;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
}

.product__cart {
	margin-top: auto;
	display: flex;
	gap: 0.5rem;
}

.product__cart a {
	flex: 1;
	text-align: center;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s;
	border: none;
}

.product__cart .btn-success {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
}

.product__cart .btn-success:hover {
	background: linear-gradient(135deg, #059669, #047857);
}

.product__cart .btn-dark {
	background: linear-gradient(135deg, #1e293b, #334155);
	color: #fff;
}

.product__cart .btn-dark:hover {
	background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* =========================================
   Product Detail Enhancements
   ========================================= */

/* Product Detail */

.grid-pro-detail {
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.left-pro-detail {
    position: relative;
    text-align: center;
}

.left-pro-detail .MagicZoom {
    border: 1px solid #eee;
    padding: 7px;
    border-radius: 5px;
    background-color: #ffffff;
}

.gallery-thumb-pro {
    position: relative;
    margin-top: 10px;
}

.owl-pro-detail {
    padding: 0px 30px;
}

.control-pro-detail button {
    background-color: transparent;
    color: #222222;
    opacity: 1;
    width: 25px;
    font-size: 23px;
}

.control-pro-detail button:hover {
    opacity: 0.7;
}

.control-pro-detail button.owl-prev {
    left: 0px;
}

.control-pro-detail button.owl-next {
    right: 0px;
}

.thumb-pro-detail {
    display: block !important;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
    background-color: #ffffff;
}

.thumb-pro-detail.mz-thumb.mz-thumb-selected {
    border-color: #cecfd2;
}

.thumb-pro-detail img {
    box-shadow: none !important;
    filter: brightness(100%) !important;
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.title-pro-detail {
    text-transform: capitalize;
    font-size: 20px;
    display: block;
    font-weight: 700;
}

.comment-pro-detail {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.social-plugin-pro-detail {
    margin-bottom: 1rem;
    margin-top: 0px !important;
}

.desc-pro-detail {
    margin-bottom: 1rem;
}

.attr-pro-detail {
    list-style: none;
    padding: 0px;
}

.attr-pro-detail li {
    margin-bottom: 0.5rem;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}

.attr-label-pro-detail {
    margin: 0px 5px 0px 0px;
}

.attr-label-pro-detail.d-block {
    display: block;
    margin: 0px 0px 5px 0px;
}

.attr-content-pro-detail {
    display: inline-block;
    margin-bottom: 0px;
}

.price-new-pro-detail {
    font-weight: 700;
    font-size: 20px;
    color: var(--color-red);
}

.price-old-pro-detail {
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: line-through;
    padding-left: 10px;
}

.color-pro-detail {
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 35px;
    height: 30px;
    margin: 0px 0px 3px 0px;
    border: 1px solid transparent;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.size-pro-detail {
    cursor: pointer;
    border: 1px solid #ccc;
    padding: 3px 10px 4px 10px;
    display: inline-block;
    position: relative;
}

.size-pro-detail.active, .color-pro-detail.active {
    border-color: #e5101d;
    color: #e5101d;
}

.size-pro-detail.active:after, .color-pro-detail.active:after {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 13px;
    height: 13px;
    background-repeat: no-repeat;
    background-image: url(../images/check-cart.png);
}

.color-pro-detail input[type=radio], .size-pro-detail input[type=radio] {
    display: none;
}

.quantity-pro-detail {
    width: 100%;
    max-width: 110px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.quantity-pro-detail span {
    line-height: 25px;
    padding: 0px;
    width: 30px;
    height: 30px;
    color: #5f5f5f;
    cursor: pointer;
    font-size: 22px;
    border: 1px solid #cccccc;
}

.quantity-pro-detail span.quantity-plus-pro-detail {
    border-left: 0px;
}

.quantity-pro-detail span.quantity-minus-pro-detail {
    border-right: 0px;
}

.quantity-pro-detail input {
    height: 30px;
    border: 1px solid #cccccc;
    width: calc(100% - 60px);
    text-align: center;
    font-size: 14px;
    padding: 5px;
}

.cart-pro-detail {
    margin-bottom: 1rem;
}

.cart-pro-detail a {
    font-size: 14px;
    color: #ffffff !important;
    text-transform: uppercase;
}

.tags-pro-detail a {
    float: left;
    font-size: 13px;
    padding-bottom: 0.375rem;
    margin: 0px 5px 5px 0px;
}

.tags-pro-detail a i {
    font-size: 11px;
    margin: 5px 5px 0px 0px;
}

.tabs-pro-detail {
    margin-top: 2rem;
}

.tabs-pro-detail .nav-tabs .nav-link {
    border-top-width: 3px;
    font-size: 13px;
}

.tabs-pro-detail .nav-tabs .nav-link.active, .tabs-pro-detail .nav-tabs .nav-item.show .nav-link {
    border-top-color: #555555;
}

/* =========================================
   Product Detail — Premium Overrides
   ========================================= */
:root {
    --color-red: #ef4444;
    --color-medium-red: #dc2626;
    --color-green: #10b981;
    --color-dark-green: #059669;
    --color-gray: #94a3b8;
}

.grid-pro-detail {
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.left-pro-detail {
    position: relative;
    text-align: center;
    background: #fff;
}

.left-pro-detail .MagicZoom {
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 16px;
    background-color: #fff;
    display: block;
    overflow: hidden;
}

.left-pro-detail .MagicZoom img {
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.left-pro-detail .MagicZoom:hover img {
    transform: scale(1.02);
}

.right-pro-detail {
    padding-left: 1.5rem;
}

.gallery-thumb-pro {
    position: relative;
    margin-top: 12px;
    padding: 0 40px;
}

.owl-thumb-pro {
    padding: 0;
}

.thumb-pro-detail {
    display: block !important;
    border: 2px solid #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
    overflow: hidden;
}

.thumb-pro-detail:hover {
    border-color: #3b82f6;
}

.thumb-pro-detail.mz-thumb.mz-thumb-selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.thumb-pro-detail img {
    box-shadow: none !important;
    filter: brightness(100%) !important;
    border-bottom: 0px !important;
    padding-bottom: 0px !important;
    border-radius: 8px;
}

/* Product Title */
.title-pro-detail {
    font-size: 1.75rem;
    display: block;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Star Rating */
.comment-pro-detail {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.comment-star i.fas.fa-star {
    color: #f59e0b;
}

.comment-star i.far.fa-star {
    color: #e2e8f0;
}

.comment-count a {
    color: #64748b;
    font-size: 0.9rem;
}

/* Social */
.social-plugin-pro-detail {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* Description */
.desc-pro-detail {
    margin-bottom: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Attributes */
.attr-pro-detail {
    list-style: none;
    padding: 0px;
    margin-bottom: 1.5rem;
}

.attr-pro-detail li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.attr-pro-detail li:last-child {
    border-bottom: none;
}

.attr-label-pro-detail {
    margin: 0px 8px 0px 0px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.attr-label-pro-detail.d-block {
    display: block;
    margin: 0px 0px 8px 0px;
}

.attr-content-pro-detail {
    display: inline-block;
    margin-bottom: 0px;
    color: #0f172a;
    font-weight: 500;
}

/* Color Picker */
.color-pro-detail {
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 40px;
    height: 36px;
    margin: 0px 4px 4px 0px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s;
    overflow: hidden;
}

.color-pro-detail:hover {
    border-color: #94a3b8;
}

/* Size Picker */
.size-pro-detail {
    border: 2px solid #e2e8f0;
    padding: 6px 16px;
    display: inline-block;
    position: relative;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-right: 6px;
    margin-bottom: 6px;
}

.size-pro-detail:hover {
    border-color: #94a3b8;
}

.size-pro-detail.active, .color-pro-detail.active {
    border-color: var(--color-red);
    color: var(--color-red);
    background: #fef2f2;
}

.color-pro-detail.active:before, .size-pro-detail.active:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    margin: auto;
    z-index: 1;
    background-image: url(../images/check-cart.png);
    background-repeat: no-repeat;
    background-position: bottom right;
}

.color-pro-detail input[type=radio], .size-pro-detail input[type=radio] {
    outline: none;
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    border: 0px;
    top: 0px;
    left: 0px;
    margin: 0;
}

/* Quantity */
.quantity-pro-detail {
    width: 100%;
    max-width: 130px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.quantity-pro-detail span {
    line-height: 36px;
    padding: 0px;
    width: 40px;
    height: 38px;
    color: #475569;
    cursor: pointer;
    font-size: 20px;
    background: #f8fafc;
    border: none;
    text-align: center;
    transition: all 0.2s;
    font-weight: 600;
}

.quantity-pro-detail span:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.quantity-pro-detail span.quantity-plus-pro-detail {
    border-left: 1px solid #e2e8f0;
}

.quantity-pro-detail span.quantity-minus-pro-detail {
    border-right: 1px solid #e2e8f0;
}

.quantity-pro-detail input {
    height: 38px;
    border: none;
    width: calc(100% - 80px);
    text-align: center;
    font-size: 1rem;
    padding: 5px;
    box-shadow: none;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
}

/* Cart Buttons */
.cart-pro-detail {
    margin: 1.5rem 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
}

.cart-pro-detail a {
    width: auto;
    text-align: center;
    color: #fff !important;
    padding: 12px 28px;
    text-transform: uppercase;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-pro-detail .btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
}

.cart-pro-detail .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.cart-pro-detail .btn-dark {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    border: none !important;
}

.cart-pro-detail .btn-dark:hover {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(30, 41, 59, 0.4);
}

.cart-pro-detail a i {
    font-size: 0.9rem;
}

/* Tags */
.tags-pro-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.5rem;
}

.tags-pro-detail a {
    float: none;
    font-size: 0.8rem;
    padding: 4px 14px;
    margin: 0;
    border-radius: 20px;
    background: #fef2f2 !important;
    color: var(--color-red) !important;
    border: 1px solid #fecaca !important;
    font-weight: 500;
    transition: all 0.2s;
}

.tags-pro-detail a:hover {
    background: var(--color-red) !important;
    color: #fff !important;
}

.tags-pro-detail a i {
    font-size: 0.7rem;
    margin: 0 4px 0 0;
}

/* Tabs */
.tabs-pro-detail {
    margin-top: 2.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.tabs-pro-detail .nav-tabs {
    border-bottom: 2px solid #f1f5f9;
    gap: 0;
}

.tabs-pro-detail .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    padding: 12px 24px;
    transition: all 0.3s;
    border-radius: 0;
    margin-bottom: -2px;
}

.tabs-pro-detail .nav-tabs .nav-link:hover {
    color: #3b82f6;
    border-bottom-color: #bfdbfe;
}

.tabs-pro-detail .nav-tabs .nav-link.active,
.tabs-pro-detail .nav-tabs .nav-item.show .nav-link {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

.tabs-pro-detail .tab-content {
    padding: 2rem 0;
}

/* Gallery Controls */
.gallery-thumb-pro p.control-carousel.prev-thumb-pro,
.gallery-thumb-pro p.control-carousel.next-thumb-pro {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 5px;
    height: 28px;
    width: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.gallery-thumb-pro p.control-carousel:hover {
    background: #e2e8f0;
}

.gallery-thumb-pro p.control-carousel.next-thumb-pro {
    left: initial;
    right: 5px;
}

/* Price */
.price-content-pro-detail {
    margin: 0 0 8px 0;
}

.price-new-pro-detail {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-red);
    letter-spacing: -0.01em;
}

.price-old-pro-detail {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-gray);
    text-decoration: line-through;
    margin-left: 12px;
}

.price-km-pro-detail {
    font-weight: 600;
    color: #f59e0b;
    padding-left: 12px;
    font-size: 0.9rem;
    background: #fffbeb;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Related Products Title */
.title-main h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.title-main h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 4px;
}

/* Responsive Detail */
@media (max-width: 768px) {
    .grid-pro-detail {
        padding: 1.5rem;
    }
    
    .right-pro-detail {
        padding-left: 0;
    }
    
    .title-pro-detail {
        font-size: 1.4rem;
    }
    
    .cart-pro-detail a {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

