/* Container */
.watch-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}


/* Detail Section */
.watch-detail-section {
    padding: 2rem 0;
    background-color: #ffffff;
}

.watch-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .watch-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Images Column */
.watch-images-col {
    position: sticky;
    top: 1.25rem;
    height: fit-content;
}

.watch-main-image {
    position: relative;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-main-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.watch-discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
}

.watch-thumbnails {
    display: flex;
    gap: 0.75rem;
}

.watch-thumb {
    width: calc(33.333% - 0.5rem);
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.watch-thumb:hover,
.watch-thumb.active {
    border-color: #111827;
}

.watch-thumb img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

/* Info Column */
.watch-info-col {
    padding: 1.25rem 0;
}

.watch-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.watch-category-line {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.watch-category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.watch-category-link:hover {
    color: var(--text-dark);
}

.watch-rating-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.watch-stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.watch-review-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.watch-price-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.watch-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.watch-original-price {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.watch-short-desc {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 1.875rem;
}

/* Quantity Box */
.watch-quantity-box {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.watch-qty-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.watch-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    margin-right: 1rem;
}

.watch-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background-color: transparent;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s;
}

.watch-qty-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    color: #111827;
}

.watch-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.watch-qty-input {
    width: 3.75rem;
    height: 2.5rem;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.watch-qty-input::-webkit-outer-spin-button,
.watch-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.watch-stock-text {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Button Group */
.watch-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.watch-btn {
    padding: 0.875rem 1.875rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.watch-btn-outline {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.watch-btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.watch-btn-solid {
    background-color: var(--primary-color);
    color: #ffffff;
}

.watch-btn-solid:hover {
    background-color: var(--text-dark);
}

.watch-out-of-stock .watch-stock-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: #d1d5db;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
}

/* Extra Actions */
.watch-extra-actions {
    display: flex;
    gap: 1rem;
}

.watch-extra-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.watch-extra-btn:hover {
    border-color: #111827;
    color: #111827;
}

/* Tabs Section Redesign */
.watch-tabs-container {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.watch-tabs-left {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.watch-tabs-nav-vertical {
    display: flex;
    flex-direction: column;
}

.watch-tab-btn {
    text-align: left;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.watch-tab-btn.active {
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 700;
}

.watch-tab-btn:hover:not(.active) {
    background: #f8fafc;
    color: #000;
}

.watch-tabs-right {
    flex-grow: 1;
    min-width: 0;
}

.watch-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.watch-tab-panel.active {
    display: block;
}

.watch-tab-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.watch-tab-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* Sticky Bottom Bar */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 12px 0;
    transform: translateY(105%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 1px solid #eee;
}

.sticky-buy-bar.visible {
    transform: translateY(0);
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.sticky-bar-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.sticky-bar-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sticky-bar-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sticky-bar-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-qty {
    margin-right: 0 !important;
    background: #fff !important;
    border-radius: 30px !important;
}

.sticky-qty .watch-qty-btn {
    width: 35px;
    height: 35px;
}

.sticky-buy-btn {
    border-radius: 30px !important;
    padding: 10px 35px !important;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .watch-tabs-container {
        flex-direction: column;
    }
    .watch-tabs-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-right: 0;
        padding-bottom: 15px;
    }
    .watch-tabs-nav-vertical {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .watch-tab-btn {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .sticky-buy-bar {
        bottom: 65px !important; /* Push up to avoid social buttons */
    }

    .sticky-bar-name, .sticky-bar-img {
        display: none;
    }
}

/* Similar Products */
.watch-similar-products {
    margin-top: 3rem;
}
.product-share-popover{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;padding:10px;border:1px solid #dbe3ec;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(15,40,70,.10)}
.product-share-popover a,.product-share-popover button{border:0;background:#f1f6fb;color:#143b5c;border-radius:7px;padding:7px 10px;text-decoration:none;cursor:pointer;font:inherit}
.product-share-popover a:hover,.product-share-popover button:hover{background:#dceef8}
.recently-viewed-products{margin-top:28px}

.watch-similar-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.875rem;
    color: #111827;
}

/* Products Grid */
.watch-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .watch-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .watch-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.watch-product-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.watch-product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.watch-product-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    background-color: #f9fafb;
    padding: 1rem;
    overflow: hidden;
}

.watch-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.watch-product-card:hover .watch-product-img {
    transform: scale(1.05);
}

.watch-product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.watch-product-card:hover .watch-product-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.watch-product-actions {
    display: flex;
    gap: 0.5rem;
}

.watch-action-form {
    display: inline;
}

.watch-action-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.watch-action-btn:hover {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

.watch-action-btn i,
.watch-action-btn span {
    font-size: 0.875rem;
}

.watch-product-info {
    padding: 1rem;
}

.watch-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.watch-product-link {
    color: #111827;
    text-decoration: none;
}

.watch-product-link:hover {
    color: #4b5563;
}

.watch-product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.watch-price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.watch-price-old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.watch-add-cart-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.watch-add-cart-btn:hover {
    background-color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .watch-images-col {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .watch-button-group {
        grid-template-columns: 1fr;
    }

    .watch-product-title {
        font-size: 1.375rem;
    }

    .watch-current-price {
        font-size: 1.625rem;
    }
}

@media (max-width: 480px) {
    .watch-main-image {
        min-height: 300px;
    }

    .watch-quantity-box {
        padding: 1rem;
    }

    .watch-tabs-nav {
        flex-direction: column;
        gap: 0;
    }

    .watch-tab-btn {
        padding: 0.75rem 1.25rem;
    }

    .watch-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .watch-product-info {
        padding: 0.75rem;
    }

    .watch-product-name {
        font-size: 0.8125rem;
    }

    .watch-price-current {
        font-size: 1rem;
    }

    .watch-add-cart-btn {
        font-size: 0.8125rem;
        padding: 0.5rem;
    }
}

/* Description Toggle Styles */
.watch-description-inner {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.watch-description-inner.expanded {
    max-height: none;
}

.watch-description-inner:not(.expanded):not(.no-fade)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
}

.watch-description-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    padding: 0.625rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 2rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.watch-description-toggle:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.watch-description-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}
