/* ===================================
   Product Page Styles
   =================================== */

/* Product Header */
.product-header {
    background-color: #ffffff !important;
    border-bottom: unset !important;
}

.header-search {
    flex: 1;
    position: relative;
    margin: 0 12px;
}

.search-input {
    width: 100%;
    padding: 7px 12px 7px 35px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    background-color: #f5f5f5;
    outline: unset;
}

.header-search > i.bi-search {
    position: absolute;
    font-size: 18px;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 0 #000);
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 0;
    background-color: #fe2c55;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 10px;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky Tabs */
.sticky-tabs {
    position: fixed;
    top: 59px;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 999;
    opacity: 0;
    overflow: auto;
    padding: 0 5px;
    visibility: hidden;
    transition: all 0.8s ease;
}
.sticky-tabs > div{
    min-width: max-content;
}

.sticky-tabs.show {
    opacity: 1;
    visibility: visible;
}
.sticky-tabs {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.sticky-tabs::-webkit-scrollbar {
  display: none;
}

.tabs-wrapper {
    display: flex;
    gap: 10px;
    height: 45px;
}

.tab-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #999999;
    font-size: 17px;
    font-weight: 500;
    padding: 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-link.active {
    color: #1f1f1f;
    border-bottom-color: #1f1f1f;
    text-shadow: 0 0 0 #000a;
}

/* Product Image Section */
.product-image-section {
    position: relative;
    padding-top: 0;
}

.product-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: grabbing;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-indicator {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.3) !important;
    padding: 4px 12px;
    border-radius: 25px !important;
    font-size: 13px;
}

.product-image-section .product-tags .tag{
    font-size: 17px;
    padding: 8px 16px 8px 10px;
}
.product-image-section .product-tags .tag:not(:first-child) {
   padding-left: 20px;
}
.product-image-section .product-tags .tag small{
    font-size: 13px;
}

/* Product Info Section */
.product-info-section {
    background-color: #ffffff;
    padding-top: 16px;
    padding-bottom: 8px;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.price-section .price-discount-badge {
    background-color: #fe2c55;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: #fe2c55;
}

.price-original {
    font-size: 14px;
    color: #999999;
    text-decoration: line-through;
}

.voucher-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 12px;
}

.voucher-item {
    background-color: #ffe5ec;
    color: #fe2c55;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.voucher-text {
    font-size: 12px;
    color: #666666;
    flex: 1;
}

.product-title-section {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.product-title-section .product-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    flex: 1;
    margin: 0;
    text-overflow: unset;
    overflow: unset;
    height: 100%;
}

.btn-bookmark {
    background: none;
    border: none;
    font-size: 20px;
    color: #666666;
    padding: 0;
    cursor: pointer;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.product-rating .bi-star-fill {
    color: #ffd700;
}

.rating-score {
    font-weight: 600;
    color: #1f1f1f;
}

.rating-count {
    color: #666666;
}

.sold-count {
    color: #666666;
}

/* Overview Section */
.overview-section, .description-section, .recommendations-section {
    background-color: #f8f8f8;
    padding: 8px 0;
}

.info-card {
    background-color: #ffffff;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 20px;
    color: #1f1f1f;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 4px;
}

.info-subtitle {
    font-size: 12px;
    color: #666666;
    margin-bottom: 4px;
}

.badge-free-shipping {
    background-color: #e0f7fa;
    color: #00897b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
}

.variations-preview {
    display: flex;
    gap: 8px;
}

.variation-item {
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.variation-more {
    color: #666666;
    font-size: 12px;
}

/* Description Section */
.description-section {
    background-color: #ffffff;
    padding: 16px 0;
}

.section-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.subsection-title {
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 12px;
}

.details-table {
    border-top: 1px solid #f5f5f5;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    font-size: 14px;
    color: #999999;
}

.detail-value {
    font-size: 14px;
    color: #1f1f1f;
    font-weight: 500;
}

.size-guide {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.size-guide img {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.video-overlay i {
    font-size: 60px;
    color: #ffffff;
}

/* Recommendations Section */
.recommendations-section {
    background-color: #ffffff;
    padding: 16px 0;
    padding-bottom: 100px;
}

.live-badge-small {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 430px;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    color: #1f1f1f;
    cursor: pointer;
    position: relative;
}

.action-item span {
    font-size: 10px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #fe2c55;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart {
    background-color: #ffeaef;
    border: none;
    color: #e21b44;
    height: 50px;
    padding: 5px 25px;
    border-radius: 8px;
    font-size: 25px;
    cursor: pointer;
}

.btn-buy-now {
flex: 1;
    display: grid;
    background: linear-gradient(135deg, #fe2c55, #ff6b9d);
    align-items: center;
    border: none;
    color: #ffffff;
    line-height: 1;
    height: 50px;
    border-radius: 8px;
    font-size: 20px;
    padding: 5px 20px;
    font-weight: 500;
    cursor: pointer;
    gap: 3px;
}

.btn-buy-now small {
    font-size: 13px;
    font-weight: 300;
    opacity: 0.85;
}

/* Modal Styles */
.modal-dialog-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 430px;
    width: 100%;
    margin: 0;
}

.modal-dialog-bottom .modal-content {
    border-radius: 16px 16px 0 0;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f5f5f5;
    padding: 12px 16px;
}

.modal-body {
    padding: 16px;
}

.modal-product-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-info {
    flex: 1;
}

.modal-price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-discount-badge {
    background-color: #fe2c55;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.modal-price {
    font-size: 20px;
    font-weight: 700;
    color: #fe2c55;
}

.modal-price-original {
    font-size: 13px;
    color: #999999;
}

.modal-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.badge-voucher {
    background-color: #ffe5ec;
    color: #fe2c55;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.modal-variant {
    font-size: 13px;
    color: #333;
    background: #f8f8f8;
    padding: 1px 15px;
    border-radius: 5px;
    display: inline-block;
}

/* Size Selection */
.size-selection {
    margin-bottom: 16px;
}

.selection-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.size-option {
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background-color: #ffffff;
    font-size: 13px;
    color: #111;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #fe2c55;
}

.size-option.active {
    border-color: #fe2c55;
    background-color: #ffe5ec;
    color: #fe2c55;
    font-weight: 600;
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.modal-footer {
    border-top: none;
    padding: 16px;
}

.btn-add-to-basket {
    width: 100%;
    background: linear-gradient(135deg, #fe2c55, #ff6b9d);
    border: none;
    color: #ffffff;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Modal Animation */
.modal.fade .modal-dialog-bottom {
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog-bottom {
    transform: translateX(-50%) translateY(0);
}

/* ===================================
   Expandable Content Section
   =================================== */

.expandable-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expandable-container.collapsed {
    max-height: 100px;
}

.expandable-container.expanded {
    max-height: none;
}

.expandable-content {
    position: relative;
}

/* Fade Overlay */
.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.expandable-container.expanded .fade-overlay {
    opacity: 0;
}

/* Product Description */
.product-description {
    margin-top: 16px;
}

.product-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 12px;
}

.description-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
    margin: 16px 0 8px 0;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.feature-list li {
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

/* Expand Button */
.btn-expand {
    width: 100%;
    background-color: transparent;
    border: none;
    color: #fe2c55;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.btn-expand i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-expand.expanded i {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .price-current {
        font-size: 20px;
    }

    .tabs-wrapper {
        gap: 16px;
    }

    .product-description p,
    .feature-list li {
        font-size: 13px;
    }
}


.carousel-control-prev-icon,
.carousel-control-next-icon{
    background-image: unset;
}