/* Theme2 CSS = ported from public/design/theme.html (shop profile styles only) */

/* ============ SHOP PROFILE STYLES ============ */

/* Bootstrap-4 compatibility helpers (designer used gap-*) */
.gap-4 { gap: 1.5rem; }

/* Platform header overlap fix (Laravel header is fixed/sticky).
   Add top spacing only for Theme2 wrapper so content doesn't hide under the navbar. */
.seller-shop-theme2{
    padding-top: var(--theme2-site-header-offset, 78px);
}
@media (max-width: 991px){
    .seller-shop-theme2{ padding-top: var(--theme2-site-header-offset, 64px); }
}

/* Breadcrumb */
.seller-shop-theme2 .shop-breadcrumb {
    background: #0066fa;
    padding: 10px 0;
    /* Designer HTML uses 100px to offset its fixed header.
       In Laravel, the platform header already handles spacing. */
    margin-top: 0;
}

/* When seller is previewing, we already show a sticky preview bar on top. */
.theme-preview .seller-shop-theme2 .shop-breadcrumb{
    margin-top: 0;
}
.seller-shop-theme2 .shop-breadcrumb a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.seller-shop-theme2 .shop-breadcrumb a:hover {
    color: #0FF6FB;
}
.seller-shop-theme2 .shop-breadcrumb span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    padding: 0;
}

/* Shop Header Banner */
.seller-shop-theme2 .shop-header {
    background: linear-gradient(135deg, #d4c5b3 0%, #a89070 50%, #8a7050 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    overflow: visible;
}
.seller-shop-theme2 .shop-header-banner{
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}
.seller-shop-theme2 .shop-header .container{
    position: relative;
}
.seller-shop-theme2 .shop-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.93);
    padding: 35px 40px 35px 80px;
    border-radius: 16px 16px 0 0;
    max-width: 72%;
    position: relative;
    z-index: 2;
    margin-left: 50px;
    margin-top: -90px;
}
.seller-shop-theme2 .shop-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.seller-shop-theme2 .shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}
.seller-shop-theme2 .shop-info {
    flex: 1;
}
.seller-shop-theme2 .shop-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
}
.seller-shop-theme2 .shop-info .shop-tagline {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}
.seller-shop-theme2 .shop-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.seller-shop-theme2 .shop-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    padding-right: 20px;
    border-right: 1px solid #ccc;
}
.seller-shop-theme2 .shop-stat:last-child {
    border-right: none;
}
.seller-shop-theme2 .shop-stat i {
    color: #0066fa;
    font-size: 16px;
}
.seller-shop-theme2 .shop-stat strong {
    font-weight: 600;
}
.seller-shop-theme2 .shop-stat .star-rating {
    color: #f5a623;
}
.seller-shop-theme2 .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0066fa;
    font-weight: 500;
    font-size: 14px;
}
.seller-shop-theme2 .verified-badge i {
    background: #0066fa;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.seller-shop-theme2 .shop-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.seller-shop-theme2 .btn-follow {
    background: #0066fa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.seller-shop-theme2 .btn-follow.is-following{
    background: #16a34a;
}
.seller-shop-theme2 .btn-follow:hover {
    background: #0052cc;
    color: #fff;
    text-decoration: none;
}
.seller-shop-theme2 .btn-follow.is-following:hover{
    background: #15803d;
}
.seller-shop-theme2 .btn-contact {
    background: #fff;
    color: #0066fa;
    border: 2px solid #0066fa;
    padding: 9px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.seller-shop-theme2 .btn-contact:hover {
    background: #0066fa;
    color: #fff;
    text-decoration: none;
}
.seller-shop-theme2 .btn-report {
    background: transparent;
    color: #888;
    border: 1px solid #ccc;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.seller-shop-theme2 .btn-report:hover {
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
}
.shop-header-image {
    display: none;
}

/* Shop Tabs */
.shop-tabs {
    border-bottom: 2px solid #eee;
    background: #fff;
    margin-top: 0;
    padding-top: 0;
}
.shop-tabs .nav-tabs {
    border: none;
}
.shop-tabs .nav-tabs .nav-link {
    border: none;
    color: #555;
    font-size: 16px;
    font-weight: 400;
    padding: 15px 25px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0;
}
.shop-tabs .nav-tabs .nav-link:hover {
    color: #000;
    border-bottom-color: #ddd;
}
.shop-tabs .nav-tabs .nav-link.active {
    color: #000;
    font-weight: 500;
    border-bottom-color: #000;
    background: transparent;
}

/* About the Maker Section */
.about-maker {
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}
.maker-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8ddd4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.maker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}
.maker-bio {
    flex: 1;
}
.maker-bio h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.maker-bio p {
    font-size: 15px !important;
    line-height: 26px;
    color: #555;
}
.maker-bio .read-more {
    color: #0066fa;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.maker-bio .read-more:hover {
    color: #0052cc;
    text-decoration: none;
}
.maker-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.maker-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}
.maker-details li i {
    color: #0066fa;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* Featured Items Section */
.featured-items {
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}
.section-header a {
    color: #0066fa;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
.section-header a:hover {
    color: #0052cc;
    text-decoration: none;
}
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.product-card-img {
    position: relative;
    aspect-ratio: 1/1;
    background: #f5f0eb;
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-img .wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: #999;
    font-size: 16px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.product-card-img .wishlist-heart:hover {
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
    text-decoration: none;
}
.product-card-img .wishlist-heart.is-active {
    color: #e53935;
}
.product-card-img .wishlist-heart.is-active:hover {
    background: rgba(229, 57, 53, 0.18);
    color: #d32f2f;
}
.product-card-img .wishlist-heart.is-bouncing {
    animation: theme2WishlistPop 420ms cubic-bezier(.2,.9,.2,1);
}
@keyframes theme2WishlistPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.12); }
    70% { transform: scale(0.96); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .product-card-img .wishlist-heart,
    .product-card-img .wishlist-heart.is-bouncing {
        transition: none;
        animation: none;
    }
}
.product-card-body {
    padding: 12px 15px 15px;
}
.product-card-body .product-name {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}
.product-card-body .product-name a {
    color: #333;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.product-card-body .product-name a:hover {
    color: #0066fa;
    text-decoration: none;
}
.product-card-body .product-price {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0;
}
.product-card-body .product-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}
.product-card-body .product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}
.product-card-body .product-rating i {
    color: #f5a623;
    font-size: 12px;
}

/* All Products Section */
.all-products {
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}
.all-products .section-header {
    align-items: flex-end;
}
.sort-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.sort-controls label {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
    white-space: nowrap;
}
.sort-controls select {
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    min-width: 100px;
}
.view-all-btn {
    display: inline-block;
    border: 2px solid #000;
    color: #000;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 20px;
}
.view-all-btn:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* Trust Badges */
.trust-badges {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.trust-badge {
    text-align: center;
    padding: 20px;
}
.trust-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #0066fa;
    font-size: 20px;
}
.trust-badge h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}
.trust-badge p {
    font-size: 13px !important;
    color: #777;
    line-height: 20px;
    margin: 0;
}

/* Customer Reviews */
.customer-reviews {
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}
.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}
.review-stars {
    color: #f5a623;
    font-size: 14px;
    margin-bottom: 12px;
}
.review-text {
    font-size: 14px !important;
    color: #555;
    line-height: 22px;
    margin-bottom: 15px;
}
.review-author {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}
.review-product {
    font-size: 13px;
    color: #888;
}

/* Shop Policies Footer Bar */
.shop-policies-bar {
    padding: 30px 0;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}
.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}
.policy-item i {
    font-size: 20px;
    color: #333;
    margin-top: 2px;
    width: 24px;
    text-align: center;
}
.policy-item h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}
.policy-item p {
    font-size: 13px !important;
    color: #777;
    line-height: 20px;
    margin: 0;
}

/* Reviews Page */
.reviews-section {
    padding: 50px 0;
}
.review-summary {
    background: #f8f6f3;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.review-score {
    text-align: center;
    min-width: 150px;
}
.review-score .big-number {
    font-size: 56px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.review-score .out-of {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}
.review-score .total-reviews {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}
.review-stars-big {
    color: #f5a623;
    font-size: 22px;
    margin-top: 8px;
}
.review-bars {
    flex: 1;
}
.review-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-bar-label {
    font-size: 13px;
    color: #555;
    min-width: 50px;
}
.review-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.review-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
}
.review-bar-count {
    font-size: 13px;
    color: #888;
    min-width: 20px;
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066fa;
    font-weight: 600;
    font-size: 16px;
}
.reviewer-info {
    flex: 1;
}
.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}
.review-date {
    font-size: 12px;
    color: #888;
}
.review-product-link {
    font-size: 13px;
    color: #0066fa;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.review-product-link:hover {
    color: #0052cc;
    text-decoration: none;
}
.review-helpful {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.review-helpful span {
    font-size: 13px;
    color: #888;
}
.review-helpful button {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}
.review-helpful button:hover {
    border-color: #0066fa;
    color: #0066fa;
}
.sort-reviews {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.sort-reviews h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.sort-reviews select {
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .seller-shop-theme2 .shop-header-inner {
        max-width: 100%;
        flex-wrap: wrap;
        padding: 25px 20px 25px 20px;
        margin-left: 0;
        border-radius: 0;
        margin-top: 0;
    }
    .seller-shop-theme2 .shop-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
    }
    .seller-shop-theme2 .shop-breadcrumb {
        margin-top: 80px;
    }
}
@media screen and (max-width: 767px) {
    .shop-header-inner {
        flex-direction: column;
        text-align: center;
    }
    .shop-stats {
        justify-content: center;
    }
    .shop-actions {
        justify-content: center;
    }
    .shop-info h1 {
        font-size: 24px;
    }
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .sort-controls {
        flex-wrap: wrap;
    }
    .about-maker .d-flex {
        flex-direction: column;
    }
    .maker-details {
        margin-top: 20px;
    }
    .review-summary {
        flex-direction: column;
        gap: 20px;
    }
}
@media screen and (max-width: 575px) {
    .shop-stat {
        padding-right: 10px;
        font-size: 12px;
    }
}

