/**
 * My Store / Your Store page - exact match from reference MyStore.tsx
 * Font: Poppins (300, 400, 500, 600, 700)
 * Horizontal spacing: px-3 (12px) hero, px-4 (16px) header/FSSAI, px-5 (20px) store info/social, mx-4 (16px) download banner
 */
body.my-store-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal page scrolling */
    width: 100%;
}

.my-store-app {
    min-height: 100vh;
    background: #fafafa;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

.my-store-container {
    min-height: 100vh;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

@media (min-width: 768px) {
    .my-store-app {
        background: #f1f5f9;
    }
    .my-store-container {
        width: 40%;
        min-width: 420px;
        max-width: 672px;
        margin: 0 auto;
        background: #fafafa;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.06);
    }
}

.my-store-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: #666;
}

.my-store-loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(125, 0, 31, 0.2);
    border-top-color: #7D001F;
    border-radius: 50%;
    animation: my-store-spin 0.8s linear infinite;
}

.my-store-loading p {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 14px;
    color: #475569;
}

@keyframes my-store-spin {
    to { transform: rotate(360deg); }
}

/* Header - sticky, h-[56px], px-4 (16px) */
.my-store-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    height: 56px;
    display: flex;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
}

.my-store-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
}

.my-store-header-btn:hover {
    background: #e2e8f0;
}

.my-store-header-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.my-store-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero images - matching reference MyStore.tsx: flex gap-2 px-3 pt-3 */
.my-store-hero-images {
    display: flex;
    gap: 8px; /* gap-2 = 8px */
    margin: 0;
    padding: 12px 12px 0; /* px-3 pt-3 = 12px horizontal, 12px top */
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Allow flex container to shrink below content size */
}

/* Horizontal scroll for 3+ images - only this container scrolls, not the page */
.my-store-hero-images-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 100%;
    box-sizing: border-box;
}

.my-store-hero-images-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Image wrapper - rounded-lg overflow-hidden, matching reference */
.my-store-hero-image-wrapper {
    flex: 1;
    height: 200px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border-radius: 8px; /* rounded-lg = 8px */
    min-width: 0; /* Allow flex item to shrink */
}

/* For scrolling mode, set fixed width - each image takes ~50% minus gap */
/* Account for gap: (100% - gap) / 2 per image */
.my-store-hero-images-scroll .my-store-hero-image-wrapper {
    flex: 0 0 calc(50% - 4px); /* 50% minus half of gap (8px / 2 = 4px) */
    width: calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
}

/* Image - w-full h-full object-cover, no margins (matching reference) */
.my-store-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0; /* No margins - gap handles spacing */
}

/* Margin classes removed - gap property handles spacing uniformly */

/* Legacy placeholder (kept for backward compatibility) */
.my-store-hero-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
}

/* Store info - -mt-5 bg-[#f0f0f0] rounded-t-[20px] pt-6 px-5 (20px L/R) */
.my-store-info {
    background: #f0f0f0;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    padding-top: 24px;
    padding-left: 20px;
    padding-right: 20px;
}

.my-store-info-no-banners {
    margin-top: 20px;
}

/* Store name - text-[26px] fontWeight 600 lineHeight 1.3 */
.my-store-name {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
}

/* Location - text-xs mt-0.5 */
.my-store-location {
    font-size: 12px;
    color: #0f172a;
    margin: 2px 0 0;
}

/* Delivery tags - flex gap-2 mt-3, text-[10px] px-3 py-1 rounded */
.my-store-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.my-store-tag {
    background: #e5e5e5;
    color: #0f172a;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Chef row - justify-between mt-5, gap-3 */
.my-store-chef-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.my-store-chef-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    flex-shrink: 0;
    background: #f0f0f0;
}

.my-store-chef-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-store-chef-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e5e5;
    color: #94a3b8;
    font-size: 24px;
}

.my-store-chef-details {
    flex: 1;
    margin-left: 12px;
}

/* Chef name - text-sm fontWeight 600 */
.my-store-chef-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px;
}

/* Specialties - text-[10px] text-slate-900 */
.my-store-chef-specs {
    font-size: 10px;
    color: #0f172a;
    margin: 0;
}

.my-store-edit-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
}

.my-store-edit-btn:hover {
    background: #e2e8f0;
}

/* Description - mt-4 pb-5, text-xs text-[#757575] leading-relaxed */
.my-store-description-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 20px;
}

.my-store-description {
    font-size: 12px;
    color: #757575;
    line-height: 1.625;
    flex: 1;
    margin: 0;
}

.my-store-see-more {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* Social - ref: bg-[#f0f0f0] px-5 pb-5, inner flex gap-3 */
.my-store-social {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    background: #f0f0f0;
}

.my-store-social-inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.my-store-whatsapp-btn {
    flex: 1;
    height: 50px;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.my-store-whatsapp-shadow {
    position: absolute;
    inset: 0;
    background: #24D366;
    border-radius: 8px;
    transform: translate(3px, 3px);
}

.my-store-whatsapp-inner {
    position: relative;
    background: #000;
    color: #fff;
    border-radius: 8px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.my-store-whatsapp-inner span {
    font-size: 12px;
    font-weight: 600;
}

.my-store-whatsapp-btn:hover .my-store-whatsapp-inner {
    transform: translate(1px, 1px);
    transition: transform 0.2s;
}

.my-store-instagram-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.my-store-instagram-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, #facc15, #ef4444, #9333ea);
    border-radius: 8px;
    transform: translate(3px, 3px);
}

.my-store-instagram-inner {
    position: relative;
    background: #000;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.my-store-instagram-btn:hover .my-store-instagram-inner {
    transform: translate(1px, 1px);
    transition: transform 0.2s;
}

/* White content area - bg-white */
.my-store-tabs-wrap {
    background: #fff;
}

/* Tabs - border-b border-[#C4C4C4], py-3 text-base */
.my-store-tabs {
    display: flex;
    border-bottom: 1px solid #c4c4c4;
}

.my-store-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #0f172a;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.my-store-tab.active {
    font-weight: 600;
    color: #0f172a;
}

.my-store-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 3px;
    background: #000;
    border-radius: 3px 3px 0 0;
}

/* Download banner - mx-4 (16px L/R) mt-5 mb-6 rounded-2xl p-5 */
.my-store-download-banner {
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(to bottom right, rgba(125, 0, 31, 0.1), rgba(125, 0, 31, 0.05), transparent);
    border: 1px solid rgba(125, 0, 31, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icon - w-14 h-14 rounded-full bg-[#7D001F]/15 mb-4 */
.my-store-download-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(125, 0, 31, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #7D001F;
}

/* Title - text-sm fontWeight 600 mb-1.5 */
.my-store-download-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 6px;
}

/* Text - text-xs max-w-[260px] mb-5 leading-relaxed */
.my-store-download-text {
    font-size: 12px;
    color: #757575;
    line-height: 1.625;
    max-width: 260px;
    margin: 0 0 20px;
}

/* Button - text-xs px-5 py-3 rounded-xl fontWeight 600 */
.my-store-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #7D001F;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.my-store-download-btn:hover {
    background: #5C0017;
}

/* Tab Content */
.my-store-tab-content {
    display: none;
}

.my-store-tab-content:not(.hidden) {
    display: block;
}

.my-store-tab-content.hidden {
    display: none;
}

/* Action Buttons */
.my-store-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px 24px;
}

.my-store-action-btn {
    width: 100%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.my-store-action-btn-primary {
    background: #000;
    color: #fff;
}

.my-store-action-btn-primary:hover {
    background: #1f2937;
}

.my-store-action-btn-outline {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}

.my-store-action-btn-outline:hover {
    background: #f9fafb;
}

.my-store-action-btn-full {
    width: calc(100% - 32px);
    margin: 20px 16px 24px;
    flex: none;
}

.my-store-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
}

.my-store-action-btn span {
    white-space: nowrap;
}

/* Videos tab - same UI as store videos section (homese-web store-video-card) */
.my-store-videos-container {
    margin-top: 24px;
    padding: 20px 16px 24px;
}

.my-store-videos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: #757575;
}

.my-store-videos-loading .my-store-loading-spinner {
    margin: 0 auto 12px;
}

.my-store-videos-loading p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.my-store-videos-empty {
    text-align: center;
    padding: 32px 16px;
}

.my-store-videos-empty-text {
    font-size: 14px;
    color: #757575;
    margin: 0;
    line-height: 1.5;
}

/* Video grid - same as store videos section */
.store-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Video card - same as store videos section (bg-white rounded-[15px] shadow-sm border) */
.store-video-card {
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.store-video-card-wrapper {
    display: block;
}

.store-video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 8px;
}

.store-video-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    flex: 1;
    padding-right: 12px;
}

.store-video-price {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
}

.store-video-thumb {
    position: relative;
    aspect-ratio: 350 / 455;
    background: #e2e8f0;
    overflow: hidden;
    border-radius: 15px;
    margin: 0 12px;
}

.store-video-thumb img,
.store-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    background: #000;
}

.store-video-player[controls] {
    display: block;
}

.store-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
    cursor: pointer;
}

.store-video-play-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.store-video-play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.store-video-description {
    font-size: 12px;
    font-weight: 400;
    color: #475569;
    line-height: 1.625;
    margin: 0;
    padding: 12px 16px 16px 16px;
    font-family: 'Poppins', sans-serif;
}

/* FSSAI - px-4 (16px L/R) pb-8 pt-2 flex gap-3 */
.my-store-fssai {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 32px;
}

.my-store-fssai-label {
    font-size: 10px;
    font-weight: 600;
    font-style: italic;
    color: #757575;
}

.my-store-fssai-num {
    font-size: 12px;
    color: #757575;
    margin: 0;
}

/* Floating WhatsApp - bottom-6 right-5 w-14 h-14 */
.my-store-floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 5px 7px 18px -7px rgba(0, 0, 0, 0.5);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
}

@media (min-width: 768px) {
    .my-store-floating-whatsapp {
        right: max(20px, calc((100vw - min(40vw, 672px)) / 2 + 20px));
    }
}

/* Empty state */
.my-store-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
}

.my-store-empty-text {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 16px;
}

.my-store-empty-btn {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.my-store-empty-btn:hover {
    background: #333;
    color: #fff;
}

/* Menu Container */
.my-store-menu-container {
    padding: 0 16px 24px;
}

.my-store-menu-empty {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #757575;
    padding: 0 16px 24px;
}

/* Category Section */
.my-store-category-section {
    margin-bottom: 32px;
}

.my-store-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 2px;
}

.my-store-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.my-store-category-toggle {
    width: 32px;
    height: 30px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    padding: 0;
    flex-shrink: 0;
}

.my-store-category-toggle:hover {
    background: #e2e8f0;
}

.my-store-category-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.my-store-category-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Menu Item */
.my-store-menu-item {
    margin-bottom: 0;
}

.my-store-menu-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.my-store-menu-item-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.my-store-menu-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 200px;
    font-family: 'Poppins', sans-serif;
}

.my-store-menu-item-details {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 400;
    color: #0f172a;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}

.my-store-menu-item-details:hover {
    text-decoration: underline;
}

.my-store-menu-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 17px;
}

.my-store-menu-item-meta svg {
    flex-shrink: 0;
}

.my-store-menu-item-quantity {
    font-size: 12px;
    font-weight: 400;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.my-store-menu-item-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #0f172a;
    flex-shrink: 0;
}

.my-store-menu-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.my-store-menu-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.my-store-menu-item-edit-btn,
.my-store-menu-item-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    height: 30px;
    border-radius: 8px;
    background: #eaeaea;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    transition: background-color 0.2s;
}

.my-store-menu-item-edit-btn:hover,
.my-store-menu-item-delete-btn:hover {
    background: #ddd;
}

.my-store-menu-item-delete-btn {
    padding: 0;
    width: 30px;
    min-width: 30px;
}

.my-store-menu-item-delete-btn svg {
    stroke: #9C9C9C;
}

.my-store-menu-item-right {
    flex-shrink: 0;
}

.my-store-menu-item-image {
    width: 131px;
    height: 131px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}
