/* ===================================================
   VISITING CARD STYLES - GOOGLE & WHATSAPP BUSINESS DESIGN
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2E7D32;
    --primary-dark: #1b5e20;
    --primary-light: #e8f5e9;
    --text-primary: #1f2937;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --border-color: #f1f3f4;
    --border-subtle: #e8eaed;
    --bg-page: #f0f2f5;
    --bg-card: #ffffff;
    --verified-green: #00875a;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

/* ====== PHONE CONTAINER WRAPPER ====== */
.card-wrapper {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Top colored accent line / status notch */
.top-status-bar {
    height: 6px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 20;
}

/* ====== COVER IMAGE SECTION ====== */
.card-cover {
    position: relative;
    width: 100%;
    height: 165px;
    background: #234c26;
    overflow: hidden;
}

.card-cover .cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-cover:hover .cover-img {
    transform: scale(1.03);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.45) 100%);
}

.cover-top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.top-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.top-circle-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
}

.top-circle-btn svg {
    width: 18px;
    height: 18px;
    fill: #1f2937;
}

/* ====== OVERLAPPING CIRCULAR LOGO ====== */
.card-logo-section {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: -48px;
    z-index: 10;
}

.card-logo-container {
    position: relative;
    width: 96px;
    height: 96px;
}

.card-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4.5px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    background: #0f3d20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

/* Verified Badge overlapping bottom-right of avatar */
.logo-verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25d366;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-verified-badge svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

/* ====== BUSINESS NAME & TAGLINE ====== */
.card-name {
    text-align: center;
    padding: 10px 20px 6px;
}

.name-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.card-name h1 {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.inline-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inline-verified svg {
    width: 20px;
    height: 20px;
    fill: #2e7d32;
}

.card-name .tagline {
    font-size: 13.5px;
    font-weight: 500;
    color: #5f6368;
    margin-top: 3px;
}

/* ====== INTERACTIVE BADGES ROW (Google Review | Instagram | Facebook) ====== */
.card-badges {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 12px;
    margin: 10px 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.badge-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 6px 4px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.badge-link {
    cursor: pointer;
}

.badge-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.badge-link:active {
    transform: scale(0.96);
}

.badge-icon-box {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.badge-link:hover .badge-icon-box {
    transform: scale(1.1);
}

.svg-badge-icon {
    width: 26px;
    height: 26px;
    display: block;
}

.badge-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.badge-subtitle {
    font-size: 11.5px;
    font-weight: 600;
    color: #5f6368;
    line-height: 1.2;
}

.badge-subtitle.review-stars {
    color: #d97706;
    font-weight: 700;
}

.badge-divider {
    width: 1px;
    height: 38px;
    background-color: var(--border-subtle);
}

/* ====== DESCRIPTION ====== */
.card-description {
    padding: 10px 20px 8px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #374151;
    text-align: left;
}

.card-description p {
    margin: 0;
}

/* ====== ACTION BUTTONS BAR ====== */
.card-action-bar {
    display: flex;
    gap: 8px;
    padding: 4px 16px 10px;
}

.main-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9.5px 10px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.main-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.main-action-btn.primary-btn {
    background: #2e7d32;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.28);
}

.main-action-btn.primary-btn:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}

.main-action-btn.primary-btn svg {
    fill: #ffffff;
}

.main-action-btn.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.28);
}

.main-action-btn.whatsapp-btn:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

.main-action-btn.whatsapp-btn svg {
    fill: #ffffff;
}

.main-action-btn.call-btn {
    background: #f1f3f4;
    color: #1f2937;
}

.main-action-btn.call-btn:hover {
    background: #e8eaed;
}

.main-action-btn.call-btn svg {
    fill: #1f2937;
}

/* ====== DETAILS LIST ROWS ====== */
.card-info-list {
    padding: 4px 12px 10px;
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease;
    cursor: pointer;
}

.info-row:hover {
    background: #f8f9fa;
}

.info-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 21px;
    height: 21px;
    fill: #5f6368;
    transition: fill 0.2s;
}

.info-row:hover .info-icon svg {
    fill: #2e7d32;
}

.info-content {
    flex: 1;
    overflow: hidden;
}

.info-text {
    font-size: 14px;
    color: #202124;
    line-height: 1.4;
    word-break: break-word;
}

.info-link {
    font-size: 14px;
    color: #1a73e8;
    line-height: 1.4;
    word-break: break-all;
}

.info-chevron {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-chevron svg {
    width: 18px;
    height: 18px;
    fill: #9aa0a6;
    transition: transform 0.2s ease;
}

/* Open/Closed Hours Row */
.hours-row {
    cursor: pointer;
    user-select: none;
}

.hours-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00875a;
    display: inline-block;
}

.hours-text {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.hours-dropdown {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12.5px;
    color: #5f6368;
}

.hours-dropdown.active {
    display: block;
}

.hours-dropdown .day-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e8eaed;
}

.hours-dropdown .day-row:last-child {
    border-bottom: none;
}

/* ====== CATALOG SECTION (MATCHING SCREENSHOT) ====== */
.card-catalog-section {
    padding: 16px 20px;
    border-top: 8px solid #f1f3f4;
}

.catalog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.catalog-section-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.catalog-see-all {
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.15s;
}

.catalog-see-all:hover {
    color: #1a73e8;
}

.catalog-see-all .arrow {
    font-size: 12px;
}

.catalog-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.catalog-card-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.catalog-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.catalog-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f3f4;
}

.catalog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.catalog-card-item:hover .catalog-img-wrap img {
    transform: scale(1.08);
}

.catalog-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #202124;
    padding: 6px 6px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.catalog-card-price {
    font-size: 11px;
    font-weight: 700;
    color: #2e7d32;
    padding: 0 6px 6px;
    text-align: center;
}

/* ====== SOCIAL ICONS ====== */
.card-social-section {
    padding: 16px 20px;
    border-top: 8px solid #f1f3f4;
}

.social-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.social-circle:hover {
    transform: scale(1.12);
}

.social-circle svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.social-circle.whatsapp { background: #25d366; }
.social-circle.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-circle.facebook { background: #1877f2; }
.social-circle.twitter { background: #000000; }
.social-circle.linkedin { background: #0a66c2; }
.social-circle.youtube { background: #ff0000; }

/* ====== QR SCAN BOX ====== */
.card-qr-box {
    padding: 24px 20px;
    margin: 16px 16px 20px;
    border-radius: 16px;
    background: #f8fbf8;
    border: 1px dashed #c8e6c9;
    text-align: center;
}

.card-qr-box h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 12px;
}

.qr-code-img-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 12px;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e8eaed;
}

.qr-code-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.qr-scan-instruction {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 14px;
    line-height: 1.4;
}

.qr-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 20px;
    background: #2e7d32;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.qr-download-btn:hover {
    background: #1b5e20;
}

.qr-download-btn svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

/* ====== FOOTER ====== */
.card-footer {
    padding: 16px 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
    margin-top: auto;
}

.footer-powered {
    font-size: 11.5px;
    color: #9aa0a6;
}

.footer-powered a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}

/* ====== MODALS & OVERLAYS ====== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

/* Bottom Sheet Style Modal */
.modal-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 22px 22px 0 0;
    padding: 20px 24px 30px;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sheet-drag-handle {
    width: 38px;
    height: 4px;
    background: #dadce0;
    border-radius: 2px;
    margin: 0 auto 16px;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sheet-header h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}

.modal-close-icon {
    background: #f1f3f4;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    position: absolute;
    top: 18px;
    right: 20px;
}

.modal-close-icon:hover {
    background: #e8eaed;
}

/* Share Options */
.share-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.share-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 11.5px;
    font-weight: 500;
}

.share-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.share-icon-circle:hover {
    transform: scale(1.08);
}

.share-icon-circle svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.share-icon-circle.whatsapp { background: #25d366; }
.share-icon-circle.facebook { background: #1877f2; }
.share-icon-circle.twitter { background: #000000; }
.share-icon-circle.email { background: #ea4335; }

.copy-url-container {
    display: flex;
    gap: 8px;
    background: #f1f3f4;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e8eaed;
}

.copy-url-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #202124;
    outline: none;
}

.copy-url-container button {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-url-container button:hover {
    background: #1b5e20;
}

/* Center Box Style Modal (for QR) */
.modal-card-box {
    background: #ffffff;
    width: 90%;
    max-width: 360px;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    align-self: center;
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-qr-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.modal-qr-header p {
    font-size: 12.5px;
    color: #5f6368;
    margin-bottom: 16px;
}

.modal-qr-img-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #e8eaed;
}

.modal-qr-img-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.modal-qr-url {
    font-size: 12px;
    color: #1a73e8;
    margin-bottom: 18px;
    word-break: break-all;
}

.modal-qr-actions {
    display: flex;
    gap: 8px;
}

.modal-btn-download,
.modal-btn-copy {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
}

.modal-btn-download {
    background: #2e7d32;
    color: #ffffff;
}

.modal-btn-download svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.modal-btn-copy {
    background: #f1f3f4;
    color: #202124;
}

.modal-btn-copy:hover {
    background: #e8eaed;
}

/* Catalog Preview Modal */
.catalog-modal-content {
    text-align: center;
    padding-top: 10px;
}

.catalog-preview-img-wrap {
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f1f3f4;
}

.catalog-preview-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.preview-price {
    font-size: 17px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 18px;
}

.catalog-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 24px;
    background: #25d366;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.catalog-order-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Mobile full-width override */
@media (max-width: 480px) {
    .card-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
}
